[Mono-bugs] [Bug 323911] daylight saving time is broken during time change

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 5 06:03:01 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=323911#c1


Stephane Delcroix <sdelcroix at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |sdelcroix at novell.com




--- Comment #1 from Stephane Delcroix <sdelcroix at novell.com>  2007-11-05 04:03:00 MST ---
here's a small code snippet to reproduce this bug without having to wait for
the next daylight change week-end... (the date/time is hardcoded for europe...)

using System;

public class Test
{
        public static void Main ()
        {
                TimeZone tz = TimeZone.CurrentTimeZone;

                DateTime after_one = new DateTime (2007, 03, 25, 1, 1, 0,
DateTimeKind.Utc);
                Console.WriteLine (after_one);
                Console.WriteLine (after_one.Kind);
                Console.WriteLine (tz.ToLocalTime (after_one));
                Console.WriteLine ((tz.ToLocalTime (after_one)).Kind);
        }
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list