[Mono-bugs] [Bug 596147] New: lightsaving time error
    bugzilla_noreply at novell.com 
    bugzilla_noreply at novell.com
       
    Tue Apr 13 09:21:23 EDT 2010
    
    
  
http://bugzilla.novell.com/show_bug.cgi?id=596147
http://bugzilla.novell.com/show_bug.cgi?id=596147#c0
           Summary: lightsaving time error
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.4.x
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: r.hohensinn at teamaxess.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Integration Test
           Blocker: ---
If the local time (GMT +1) should change to daylight saving time from
"2010/03/28 1:59:59" to "2010/03/28 3:00:00" the DateTime.Now value is wrong
for one hour.
Steps to reproduce the problem:
1. Change local time to 2010/03/28 1:59:45
2. Run following sample
while(true )
{
   Console.WriteLine( DateTime.UtcNow.ToString() + " utc");
   Console.WriteLine( DateTime.Now.ToString());
   System.Threading.Thread.Sleep(1000);
}
Actual Results:
28.03.2010 00:59:59 utc
28.03.2010 01:59:59
28.03.2010 01:00:00 utc
28.03.2010 02:00:00           // Should be 3:00:00
 ....
28.03.2010 01:00:50 utc
28.03.2010 02:00:50
28.03.2010 01:00:51 utc
28.03.2010 01:00:51           // WRONG: Localtime same as UTC
28.03.2010 01:00:52 utc
28.03.2010 01:00:52
 ...
28.03.2010 02:00:44 utc
28.03.2010 02:00:44           // Still WRONG!
28.03.2010 02:00:45 utc
28.03.2010 04:00:45           // OK!
28.03.2010 02:00:46 utc
28.03.2010 04:00:46
28.03.2010 02:00:47 utc
Expected Results:
28.03.2010 00:59:59 utc
28.03.2010 01:59:59
28.03.2010 01:00:00 utc
28.03.2010 03:00:00
-- 
Configure bugmail: http://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