So far I have only found a mod to do this, but given the majority of people use 24 hours¹ I think it would make sense to have an option for that.
I have only found this thread (mostly) about the forum: https://forums.stardewvalley.net/threads/24-hour-clock.13596/
so I'm making this new one in...