Opened 8 years ago

Closed 7 years ago

#7262 closed (fixed)

Microsecond dateformat patch

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

Description

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 8 years ago.
The full patch with unittest and doc

Download all attachments as: .zip

Change History (7)

comment:1 Changed 8 years ago by Simon Greenhill

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedReady for checkin

comment:2 in reply to:  description Changed 8 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 8 years ago by zegor

Attachment: microsecond.patch added

The full patch with unittest and doc

comment:3 Changed 8 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 8 years ago by Michael Radziej

milestone: post-1.0

comment:5 Changed 8 years ago by (none)

milestone: post-1.0

Milestone post-1.0 deleted

comment:6 Changed 7 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