Re: Issue with STRFTIME and Daylight Savings

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

 



On Mon, 2007-12-03 at 15:14 +1000, Malcolm Green wrote:
> Hi Support:
> 
> I've moved into a new role and inherited a system which uses the 'STRFTIME'
> function to create a filename in the form 'strftime("%Y%m%d")'; the
> filename is supposed to be "today's date". (Note I've left out the file
> extension for clarity.)
> 
> I've noticed that system creates the wrong filename when the process runs
> between midnight and 12:59am, during Daylight Savings time. That is, it
> creates a filename equal to "yesterday's date". When run at 1:00am or
> later, everything OK.
> 
> I've checked the Date/Time and 'Locale' settings in Windows, and everything
> is ok. My initial thought was that STRFTIME was looking a the system clock
> rather than Windows (?).
> 
> Can you help?
> 
> (PS ... please be gentle, I'm a novice at PHP!)

Check your timezone settings in php.ini

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

-- 
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