473,320 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

default timezone broken on windows?

AqD
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
any)

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: yashgt | last post by:
In MS SQL 2000, I would like to obtain the timezone offset from UTC for a given date. For today's date, I can do DATEDIFF(ss,GETDATE(),GETUTCDATE()). However, the offset for a future date may not...
7
by: Jim Davis | last post by:
I'm (still) working on an ISO 8601 date parser. I want to convert at least the formats described here: http://www.w3.org/TR/NOTE-datetime Well.. I've got most of it working (via RegEx's) good...
1
by: cnliou | last post by:
Hi! If I correctly understand v7.4 manual, value, say, '2003-11-26 12:00' in TIMESTAMP WITHOUT TIMEZONE column should output '2003-11-26 19:00' for "+08:00" timezone. The following test...
1
by: Raj Chudasama | last post by:
I have the following code for a clock in my gui. Everything works fine EXCEPT the following line when the TimeZone is changed in the windows. string tz = TimeZone.CurrentTimeZone.StandardName;...
2
by: Roshawn Dawson | last post by:
Hi, I have a datetime value that is already in GMT (UTC) time. What I would like to do is convert this value into Pacific Standard Time, but I also need to account for daylight savings time. ...
1
by: Marcus | last post by:
Hello, As far as I can tell from the php.net documentation and other documentation I've seen, date("T") should return the server timezone in 3-character format, i.e. EST, MST, etc... ...
2
by: Paul Sijben | last post by:
I ran into an internationalization issue. I need a consistent idea about the timezone my application is running on. However when I run the following: I get back ('West-Europa (standaardtijd)',...
2
by: Benjamin The Donkey | last post by:
How do I convert Date to another TimeZone in C#? I am using .NET 1.1 right now.
6
by: jehugaleahsa | last post by:
Hello: I would like it so that the time displayed was always for CDT/CDS. Potentially, the application can be run at locations in Mountain Time or Central Time. This is what I have now: //...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.