www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5144] New: Issue with SYSTEMTIME2d_time daylightSavingTA()

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5144

           Summary: Issue with SYSTEMTIME2d_time daylightSavingTA()
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: koine4895 mypacks.net



The last two parameters to dateFromNthWeekdayOfMonth should be swapped in
SYSTEMTIME2d_time:
          auto mday = dateFromNthWeekdayOfMonth(year,
                    st.wMonth, st.wDay, st.wDayOfWeek);
should be:
          auto mday = dateFromNthWeekdayOfMonth(year,
                    st.wMonth, st.wDayOfWeek, st.wDay);

Also, daylightSavingTA() is calling the Windows API GetTimeZoneInformation(),
which returns the time in LOCAL time, but I believe it is assuming that it is
UTC time.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 31 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5144


Lars T. Kyllingstad <bugzilla kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla kyllingen.net
            Version|D1 & D2                     |D1



02:51:44 PST ---
Marking this as D1-only, since std.datetime has replaced std.date in D1.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 03 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5144




02:53:57 PST ---

 ...std.datetime has replaced std.date in D1.
And by D1 I do of course mean D2. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 03 2011