Time zones and $_ENV vs getenv
| From: | John Coppens | Date: | Mon, 03 Nov 2008 15:01:14 +0000 |
| Subject: | Time zones and $_ENV vs getenv | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-282798@lists.php.net to get a copy of this message | ||
Hello people.
Argentina changed timezones (Oct 19th), just two weeks ago, and, as PHP
has a separate table, I forgot to change the zones both in my machine and
on the server. I did so yesterday, and have some problems. Here's what I
did:
1) Downloaded the latest timezonedb (2008.9), compiled and installed it
locally and on the server. Apparently no problem there.
2) I have a calendar on my pages
(http://www.jcoppens.com/kayak/peperina/agenda.php&uniz=1) which shows
the unix time stamp if the cursor is above a date (just to help
debugging). The stamps coincide till Oct 19th, then differ by one hour
(as compared to my PC).
At the remote server, the time seems correct (-0200), on my machine it
isn't (-0300). I _did_ restart my apache, and yes, the php.ini is correct.
One strange thing I noticed (on both my machine and the server) is that
$_ENV['TZ'] was empty, while getenv('TZ') was correctly set
(America/Argentina/Cordoba).
I'm confused... Can someone point me to some more tests I could do?
Thanks,
John