daylight saving time problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I've manually updated the timezone to reflect the new DST for the
entire server network I'm working on.  Almost everything is working
correctly, except PHP's date/time functions still return dates as
though DST will occur at 2:00am on April 2, 2007.  This only happens
when the script is executed through an http request:

echo date("F d, Y H:i:s", time()) . "\n" ;

on shell:
[user]$ php test.php
March 12, 2007 11:55:51

on web browser:
March 12, 2007 10:55:11

What's the problem here?

Re: daylight saving time problem

Tom wrote:

Quoted text here. Click to load it

You're probably running as different users, running different binaries, with
different environments.

If its critical to fix it, then start with the env settings and work
forwards from there.


Re: daylight saving time problem

Quoted text here. Click to load it

Did you restart the web server after you did the OS patches?
Processes like Apache (and cron) may suck in the timezone rules or
value of $TZ or whatever once on startup, and keep the same rules
until the process is restarted.

Site Timeline