Hacker News new | ask | show | jobs
by misja 2554 days ago
Apparently I'm in the minority together with OP but I agree that storing dates as UTC is good advice.

What most repliers seem to have overlooked is that OP is saying that timezones should be used for presentation. Maybe it was not clear, but that also means they should be used for input conversion. But once the dates have to be used by the business logic of your system, you really want to prevent the headaches you will get when you have to deal with timezone transformations everywhere. That really adds a ton of complexity, is easy to overlook and above all an error in timezone conversion can go undetected for a long time.

1 comments

I don't think anyone is saying that you shouldn't store datetimes in UTC. It's just that time is complex and the errors can be subtle, and you don't want to mess up appointments across timezones because you didn't factor in the timezone when appointment was originally made.

http://www.creativedeletion.com/2015/03/19/persisting_future...