Samoa cancels Friday 30th and travels one day forward in time
1–10 of 37 posts
Re: Samoa cancels Friday 30th and travels one day forward in time
#2Re: Samoa cancels Friday 30th and travels one day forward in time
#3It's cases like this that show that you should use a proper timezone library in your code. Too often I see websites where the timezone field is given as "+/- X from GMT". Just store everything in UTC, and use tzdata fields (e.g. "Europe/London") to convert to something nice to show the user, and People Cleverer Than You™ will make sure everything works.
Re: Samoa cancels Friday 30th and travels one day forward in time
#4I know Jews wouldn't, and I doubt Muslims would, but I don't think there are any Jews there anyway, not sure about Muslims.
Re: Samoa cancels Friday 30th and travels one day forward in time
#5It's cases like this that show that you should use a proper timezone library in your code. Too often I see websites where the timezone field is given as "+/- X from GMT". Just store everything in UTC, and use tzdata fields (e.g. "Europe/London") to convert to something nice to show the user, and People Cleverer Than You™ will make sure everything works.
Would timezone libraries handle this specific case? Genuinely curious, not being sarcastic.
http://mm.icann.org/pipermail/tz/2011-December/008457.html
EDIT: Correction, that thread was about Tokelau and not Samoa. The Samoan change seems to already be in the latest version of the database.