By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,420 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

default timezone broken on windows?

P: n/a
Hi all!

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?
Sep 18 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.