[Issue 5144] New: Issue with SYSTEMTIME2d_time daylightSavingTA()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 31 06:27:38 PDT 2010


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 at puremagic.com
        ReportedBy: koine4895 at mypacks.net


--- Comment #0 from Robert <koine4895 at 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: -------


More information about the Digitalmars-d-bugs mailing list