by natrius · 14y ago · 0 comments
That's not true in general. When the "clocks go backwards", there are two 1:30ams on that morning.
The bug this comment is refering to, is where you convert from local to UTC as soon as the user enters the datetime, and then use that from then on. Since the "local to UTC" conversion might change between now and the date, as the tzdata time is updated, you might get this bug.
In 2010, you may not yet know that the timezones will change in 2012, but you might still need to store a 2012 date in your database.
So, the best you can do, if storing in UTC, is store that 2012 date using 2010 timezone rules, as you don't yet know what the 2012 time zone rules are going to be