SIP Date of Birth off by one day / parsed as UTC
Bug #1516757 reported by
Bill Erickson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
2.9 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Evergreen master only (circa 2.9)
With the addition of bug #838525, user dates of birth no longer contain time or timezone information. When formatting dates in SIP, the code parses the date, defaulting to UTC since there is no timezone, then translates the value into localtime. In EST, this looks something like:
1990-01-01 => parsed as 1990-01-01 UTC => translated to local time as 1989-12-31. We lose 5 hours in the timezone conversion, so the date loses a day.
We need to tell the code to treat the originally parsed date as local time instead of UTC, which is how it behaved before (more or less) when the timezone was included in the DoB.
Patch en route.
Changed in evergreen: | |
assignee: | nobody → Galen Charlton (gmc) |
Changed in evergreen: | |
status: | New → Confirmed |
Changed in evergreen: | |
milestone: | 2.next → 2.10-rc |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix pushed:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ berick/ lp1516757- sip-dob- tz