Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 Time Zone Bug
Google
Post new topic Reply to topic
Author Message
alfredwolf
 
 


Joined: 30 Oct 2006
Posts: 3

PostPosted: Mon Oct 30, 2006 11:31 pm Reply with quoteBack to top

Hello,

I have recently upgraded to A2T 1.5.6 on a Win 2003 Server machine. Every time I read the system time using PHP datetime functions it returns the system hour plus one more (eg its 1:00PM and PHP returns 2:00PM). Any idea why is this happening? We operate in Queensland, Australia, and we dont use Daylight Saving here, I believe this is the problem. But we didnt have any problems with the Windows Time, only with PHP Time.

Thank you,
Alfred Wolf
View user's profileSend private message
Vlad Alexa Mancini
lead developer
lead developer


Joined: 07 Jul 2003
Posts: 1539

PostPosted: Tue Oct 31, 2006 9:34 am Reply with quoteBack to top

you can set dailight saving with the "I" php date() param, see php.net/date for more info
View user's profileSend private message
alfredwolf
 
 


Joined: 30 Oct 2006
Posts: 3

PostPosted: Tue Oct 31, 2006 11:18 pm Reply with quoteBack to top

Thank you for the answer Vlad. Yes I know that, or you can set the Time Zone in PHP using putenv function, but still, PHP should use the same time zone as the server and not a different one. My question was why is this happening and how can I fix it? Is seems to me that this is a PHP bug.

Thank you.
View user's profileSend private message
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT