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)

utils_dateformat_py.patch (749 bytes ) - added by Paul Lanier <planier@…> 17 years ago.
Patch for dateformat.py

Download all attachments as: .zip

Change History (3)

by Paul Lanier <planier@…>, 17 years ago

Attachment: utils_dateformat_py.patch added

Patch for dateformat.py

comment:1 by planier, 17 years ago

Triage Stage: UnreviewedReady for checkin

comment:2 by Malcolm Tredinnick, 17 years ago

Resolution: fixed
Status: newclosed

(In [6275]) Fixed #5470 -- Fixed the 'Z' time format marker in templates to handle timezones west of UTC. Thanks, Paul Lanier.

Note: See TracTickets for help on using tickets.
Back to Top