Our app currently uses a local time rather than UTC. I know that it's important to use UTC, but cannot for the life of me remember why.
Assuming that the DateTimes are stored with an offset, when comparing a local time to a UTC time, or with another time with a different timezone, surely any library worth using will know about the different timezones and mutate the two objects into something that can be compared?
As long as the offset is passed around with the DateTime (which it will be using objects rather than strings, say), I do not see why it matters. Why should I deal with 2014-09-01T13:44:13+00:00
rather than 2014-09-01T14:44:13+01:00
? In fact, storing as UTC looses the offset information (the local time when the time was declared).
What am I missing here?
Context: We are having limit, off-by-one style errors, and I thought 'aha: move all the things to UTC' but then realised that I am just going through the code converting a bunch of DateTime objects to use a UTC timezone, and this struck me as a waste of time.