digitalmars.D.bugs - [Issue 5761] New: std.datetime: Date.this(int day) conversion fails for Dec 30 of leap years
- d-bugmail puremagic.com (22/22) Mar 21 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5761
- d-bugmail puremagic.com (14/14) Mar 23 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5761
- d-bugmail puremagic.com (6/6) Mar 24 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5761
- d-bugmail puremagic.com (12/12) May 05 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5761
http://d.puremagic.com/issues/show_bug.cgi?id=5761
Summary: std.datetime: Date.this(int day) conversion fails for
Dec 30 of leap years
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: jmdavisProg gmx.com
ReportedBy: thecybershadow gmail.com
---
import std.datetime;
void main()
{
assert(SysTime(Date(2008, 12, 30)).day == 30);
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 21 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5761 PDT --- Now, _that_ was a nasty little math bug. Well, I now have a fix, and if you need it, the code can be gotten here: https://github.com/jmdavis/phobos/tree/datetime I'm revamping std.datetime's unit tests at the moment, and I probably won't create a pull request until that's done. Also, with these changes, the unit fixed before a pull request is made. However, the changes are posted in the datetime branch of my github repository if you need them before they actually get merged into Phobos proper. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 23 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5761 --- Thanks, the fix worked :) Feel free to close the issue when the fix is in. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 24 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5761
Jonathan M Davis <jmdavisProg gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
PDT ---
Fixed:
https://github.com/D-Programming-Language/phobos/commit/a34673cc82337b3004d9e3526b43711ec66b3727
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 05 2011









d-bugmail puremagic.com 