Time zones and $_ENV vs getenv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux