daylight saving time issue

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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I built and installed php-5.2.4 about a month ago.

The issue I'm having is that all calculated times are off by one hour since we had a time change.

Seems that PHP doesn't respect DST or the php.ini setting for automatic compensation is so buried that finding information on setting it is impossible to locate.

Someone posted something about the timezones at http:// fischer.tecnologia.ws/en/node/1 regarding a timezonedb module but the instructions do not provide links to some of the specific tools and scripts mentioned in the post and are incomplete instructions that don't work which makes any intelligent person conclude that the author is an idiot.

I have php built with the date module, I tried setting the "date.timezone=America/New_York" as outlined but this had no effect on the time, and even changing it to "America/Los_Angeles" seemed to have no effect as it still reported the local time - 1 hour.

How do I get php to report the correct time all the time, I don't want to have to rebuild php every time there is a time change, one would think that php would be intelligent enough to automatically adjust and report the correct time but this doesn't appear to be the case.

The system time is reported properly using the date command.

# date "+DATE: %m/%d/%y%nTIME: %H:%M:%S"
DATE: 11/06/07
TIME: 15:49:54
#

All apps report the correct time but php seems to be off by 1 hour, how do I get php to report the correct time all the time, I don't want to have to rebuild php every time there is a time change, one would think that php would be intelligent enough to automatically adjust the time but as far as I can tell, it isn't so php must be broken.

- -- Dale
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)

iD8DBQFHMN1e0hzWbkf0eKgRAh6HAJ9LIefv4azi8GXRxS4KOW+JDiULXQCgoAdM
niz9I2XLZeLgf5OwwD/TtyY=
=OBSb
-----END PGP SIGNATURE-----

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux