Issue with STRFTIME and Daylight Savings

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

 



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


Thanks & Regards,
Malcolm.

Malcolm Green
Voice Consultant, Managed Network Services
CSC Australia Pty Limited
M: 0401-002-569
T: (02) 9034-3114
E: malcolm.green@xxxxxxxxxx

"Vision without action is a dream; action without vision is a nightmare." -
Chinese Proverb


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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