Re:What every programmer should know about time
by viraptor on Monday July 04, 2011 @08:10PM
(#2728238)
Don't you get exactly the same problem when you store timezones? CET always stays == UTC + 1 hour. So there's no difference whether you store 8 CET or 7 UTC, because some country may decide it's not in CET at that time anymore... Only storing the actual location would save you if you're thinking about dates in far future.
Then again, you'd have to somehow verify what's the time in that location at that point.
Re:What every programmer should know about time
by wvenable on Tuesday July 05, 2011 @02:56AM
(#2728921)
I don't store timezone offsets, I store the timezone strings and they are pretty granular. Users can choose the most appropriate timezone from 448 possibilities.
Then again, you'd have to somehow verify what's the time in that location at that point.