Do you have a question? Post it now! No Registration Necessary. Now with pictures!
September 18, 2008, 10:18 am
rate this thread
I just noticed on windows (2003; php 5.2.5) the LOCAL timezone is set
to UTC by default. I have never experienced this on linux before...
I digged the manual and found this:
The timezone set using the date_default_timezone_set() function (if
The TZ environment variable (if non empty)
The date.timezone ini option (if set)
"magical" guess (if the operating system supports it)
If none of the above options succeeds, return UTC
The fourth line "if the operating system supports it" - well I did set
correct timezone for my system and I'm sure it's doable to get current
timezone from windows API ;) Yet it doesn't mention what systems are
supported and what are not.
Is this just me or everyone on windows has the same problem?