Opened 15 years ago

Closed 13 years ago

#7262 closed (fixed)

Microsecond dateformat patch

Reported by: zegor Owned by: nobody
Component: Core (Other) Version: dev
Severity: Keywords: microsecond dateformat
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no


Simple patch to add 'c' (ISO Format with microseconds) and 'u' (microseconds) formats to django.utils.dateformat module.
Theses flags have been added in PHP 5.
Useful when dealing with high precision timestamp.
Updated unitests included.

Attachments (1)

microsecond.patch (2.9 KB) - added by zegor 15 years ago.
The full patch with unittest and doc

Download all attachments as: .zip

Change History (7)

comment:1 Changed 15 years ago by Simon Greenhill

Triage Stage: UnreviewedReady for checkin

comment:2 in reply to:  description Changed 15 years ago by Marc Fargas

Patch needs improvement: set
Triage Stage: Ready for checkinAccepted

Replying to zegor:

Updated unitests included.

Where? the patch does not change the test neither the documentation.

Changed 15 years ago by zegor

Attachment: microsecond.patch added

The full patch with unittest and doc

comment:3 Changed 15 years ago by zegor

Trac seems to eat some parts of my patch when viewing it. Download the file to see the full patch.

comment:4 Changed 15 years ago by Michael Radziej

milestone: post-1.0

comment:5 Changed 14 years ago by (none)

milestone: post-1.0

Milestone post-1.0 deleted

comment:6 Changed 13 years ago by Jannis Leidel

Resolution: fixed
Status: newclosed

(In [12058]) Fixed #7262 - Added ISO 8601 and microsecond format string to utils.dateformat. Thanks zegor.

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