Re:Why is 11 am and 1 hour == 12:00 pm?
by bradknowles on Tuesday January 09, 2018 @12:29AM
(#16103847)
Time is hard.
Doing it right is really hard.
Whether this is measuring time or calculating time, it's hard.
I tried various things like if a meeting says 12AM, subtract one day, but then I'd encounter edge cases like meetings that start at 12AM now showing the previous day, or meetings that are scheduled from 12AM on the 8th to 12AM on the 8th (basically zero-minute durations) showing the wrong day or a bunch more things you don't think of until you try to develop applications for end users you might never talk to.
Eventually I set it to make any meeting that ended at 12AM just subtract one minute from the overall duration so it would end at 11:59PM instead. It didn't as much solve the problem as it did just avoid it, but at least people stopped complaining.