Wednesday, February 1, 2012

Timezone woes

Nothing much today, just some rambling.

We have a client in Novokuznetsk, Russia and we were having issues with displaying the right time since Russia stopped using daylight saving time. There's a WAMP server running over there with php 5.3.6 that has an old tz database. Upgrading to 5.3.9 fixed the issue, although there doesn't seem to be VC6 binaries compiled for the moment and there's a clear warning about not using VC9 version with apache.org binaries. The VC9 x86 thread safe binaries seem to work fine.

However, we were a bit uncertain about the actual time in Novokuznetsk (although we later confirmed it is +7.) Just for fun, I started looking around, taking the first few sites when searching for "timezone" on google:

Source Time Timezone
php 5.3.6 14:00 +6
php 5.3.9 15:00 +7
timeanddate.com 15:00 +7
worldtimezone.com 15:00 +7
google 16:00 +8

I was surprised to see google getting it wrong.

No comments: