[wellylug] php and new Daylight Savings Time
nic
nic at tymar.com
Tue Oct 2 08:36:31 NZDT 2007
just tried it on another machine running php 4.3 (not 5.1), and it's fine. Bizarre.
Nic
Jo Booth wrote:
> On 1/10/2007, at 20:03 , nic wrote:
>
>> Has anyone else hit problems with php's internal timezone magic
>> being broken with the new
>> daylight savings time?
>> I've found this:
>> * Machine time is reported correctly. I've even gone as far as
>> rebooting it.
>> * zdump -v Pacific/Auckland shows the correct daylight savings time.
>> * I've downloaded, compiled, installed the newest php timezonedb.
>> * Timezone reported by phpinfo() set to Pacific/Auckland.
>> BUT:
>> time as reported by strftime('%Y-%m-%d %H:%M:%S') is 1 hour behind
>> real time.
>>
>> Any insights?
>>
>> Cheers
>> Nic C-L
>
>
> Onyx:~ jo$ php -r "echo strftime('%Y-%m-%d %H:%M:%S'); echo date
> ('r');"; date
> 2007-10-01 22:25:28
> Mon, 01 Oct 2007 22:25:28 +1300
> Mon Oct 1 22:25:28 NZDT 2007
>
> Seems all good. What OS/platform/php version are you on?
>
> What does a php -r "echo strftime('%Z');" give? NZDT?
>
> This thread on the nz php users group list may help also
> <http://groups.google.com/group/nzphpug/browse_thread/thread/
> 956d2cc661c19eac/714a11e28d3e63d3#714a11e28d3e63d3>
>
>
More information about the wellylug
mailing list