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: nob...@puremagic.com
        ReportedBy: koine4...@mypacks.net


--- Comment #0 from Robert <koine4...@mypacks.net> 2010-10-31 06:26:46 PDT ---
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: -------

Reply via email to