[Mono-bugs] [Bug 548790] New: Date incorrect

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 21 10:47:59 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=548790


           Summary: Date incorrect
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: i686
        OS/Version: openSUSE 11.1
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: glen at esselsystems.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Other


Description of Problem:


Steps to reproduce the problem:
1. Set local timezone to Australia/Perth
2. Console.WriteLine(DateTime.Now.ToShortTimeString());


Actual Results:

Current time + 1 hour

Expected Results:

Current time 

How often does this happen? 

Continuously

Additional Information:

Happens whether machine clock is set to UTC or to local time.  Does not happen
on Windows Mono or Windows Dot Net.

 
Console.WriteLine(TimeZone.CurrentTimeZone.GetDaylightChanges(2009).End.ToShortDateString()); 

Returns 23/3/2009 on Windows (which is correct)
but 1/1/0001 on OpenSuse which is obviously not

zdump -v Australia/Perth | grep 2009 

gives this -

Australia/Perth  Sat Mar 28 17:59:59 2009 UTC = Sun Mar 29 02:59:59 2009 WST
isdst=1
Australia/Perth  Sat Mar 28 18:00:00 2009 UTC = Sun Mar 29 02:00:00 2009 WST
isdst=0

I believe this means that DST ended at 02:59:59 on Mar 29th.

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