Bug 2223 - Problem with day light saving time (patch is attached)
Summary: Problem with day light saving time (patch is attached)
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: unspecified
Hardware: All Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-11-28 08:45 UTC by Kirill
Modified: 2011-12-09 11:57 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
patch to fix the problem (734 bytes, application/octet-stream)
2011-11-28 08:45 UTC, Kirill
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Kirill 2011-11-28 08:45:11 UTC
Created attachment 957 [details]
patch to fix the problem

Description of Problem:

When there is only START time for day light saving time in a year (time conversion was cancelled and the START was the last conversion) we need to assign the END dls time to end of year (beginning of the next one)

Actual Results:
csharp> TimeZone.CurrentTimeZone.GetDaylightChanges(DateTime.Now.Year).End;   
01.01.0001 0:00:00

Expected Results:
csharp> TimeZone.CurrentTimeZone.GetDaylightChanges(DateTime.Now.Year).End;   
01.01.2012 0:00:00

Additional Information:

patch is attached
Comment 1 Jeffrey Stedfast 2011-12-09 11:57:39 UTC
Applied to master and mono-2-10 branches.