Opened 17 years ago
Closed 17 years ago
#5470 closed (fixed)
"Z" in dateformat does not work for negative utc offsets
Reported by: | Paul Lanier | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Keywords: | date | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The timedelta object never returns seconds as negative. To calculate the offset in seconds you must also take the days member into account since days can be negative.
Attachments (1)
Change History (3)
by , 17 years ago
Attachment: | utils_dateformat_py.patch added |
---|
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch for dateformat.py