|
|
|
|
|
by dotancohen
910 days ago
|
|
Another common reason that time goes backwards is DST. The amount of DST-related bugs that I've fixed over the years amazes me, because every single developer has moved clocks back and forth twice a year for their entire lives, bar a few years in the beginning. And even this fine article mentions the time-has-gone-back possibility yet ignores DST. |
|
> yet ignores DST
Uhm, you do know that you're supposed to use a neutral timezone (Such as UTC) internally in your code / schema, and convert to local time in the UI?
The bugs that I've hit generally have to do with using local time accidentally when UTC is expected.
> because every single developer has moved clocks back and forth twice a year for their entire lives
WTF? Every single developer knows that their database schema should be in UTC and thus immune to DST issues.