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

DateTime not taking Daylight Savings into consideration

P: n/a
Hi, I've come across a small issue related to the DateTime class. It
seems to not take daylight savings here (Israel, GMT+2\+3 with DST)
into consideration, No matter the form used.

I've tried the default formats used by ToString, ToShortTimeString and
ToLongTimeString. All of them currently consider me to be in the GMT+3
timezone, Which is when DST is supposed to be turned on. Checking
IsDayLightSavingsTime() returns True currently, also incorrect.

I've also tried the provided MSDN example code for
DateTime.ToString(string), Which shows the same incorrect time.

Windows (Vista) itself correctly shows my time as GMT+2.

Is this a known issue? Is there a work-around it?

Any help appreciated.

Sep 28 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ch********@gmail.com schreef:
Hi, I've come across a small issue related to the DateTime class. It
seems to not take daylight savings here (Israel, GMT+2\+3 with DST)
into consideration, No matter the form used.

I've tried the default formats used by ToString, ToShortTimeString and
ToLongTimeString. All of them currently consider me to be in the GMT+3
timezone, Which is when DST is supposed to be turned on. Checking
IsDayLightSavingsTime() returns True currently, also incorrect.

I've also tried the provided MSDN example code for
DateTime.ToString(string), Which shows the same incorrect time.

Windows (Vista) itself correctly shows my time as GMT+2.

Is this a known issue? Is there a work-around it?

Any help appreciated.
Check your CurrentCulture to see if your program is working in the right
culture. You might have to set it to your specific region.
--
Rinze van Huizen
C-Services Holland b.v
Oct 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.