Thread overview | |||||
---|---|---|---|---|---|
|
October 31, 2010 [Issue 5144] New: Issue with SYSTEMTIME2d_time daylightSavingTA() | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from Robert <koine4895@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: ------- |
February 03, 2011 [Issue 5144] Issue with SYSTEMTIME2d_time daylightSavingTA() | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert | 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 --- Comment #1 from Lars T. Kyllingstad <bugzilla@kyllingen.net> 2011-02-03 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: ------- |
February 03, 2011 [Issue 5144] Issue with SYSTEMTIME2d_time daylightSavingTA() | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert | http://d.puremagic.com/issues/show_bug.cgi?id=5144 --- Comment #2 from Lars T. Kyllingstad <bugzilla@kyllingen.net> 2011-02-03 02:53:57 PST --- (In reply to comment #1) > ...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: ------- |
Copyright © 1999-2021 by the D Language Foundation