 |
Apache2Triad Help, Support and Development The apache2triad help , support and development forums
|
| View previous topic :: View next topic |
| Author |
Message |
alfredwolf
Joined: 30 Oct 2006
Posts: 3
|
| Posted: Mon Oct 30, 2006 11:31 pm Post subject: Time Zone Bug |
|
|
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 |
|
| Back to top |
|
Vlad Alexa Mancini
Joined: 07 Jul 2003
Posts: 1538
|
| Posted: Tue Oct 31, 2006 9:34 am Post subject: |
|
|
| you can set dailight saving with the "I" php date() param, see php.net/date for more info |
|
| Back to top |
|
alfredwolf
Joined: 30 Oct 2006
Posts: 3
|
| Posted: Tue Oct 31, 2006 11:18 pm Post subject: but why? |
|
|
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. |
|
| Back to top |
|
| |
|