diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-09-22 12:02:21 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-09-22 12:02:21 +0200 |
| commit | 822cfce3df53301d9f9f4c14bd8a0cb2a1956e2e (patch) | |
| tree | a7f0a380b52fe66e99afbd48ce59ff50a76e426e /django/utils/dateformat.py | |
| parent | baa33cd8faa16737524b1ac355802a10dd63571c (diff) | |
Fixed #18951 -- Formatting of microseconds.
Thanks olofom at gmail com for the report.
Diffstat (limited to 'django/utils/dateformat.py')
| -rw-r--r-- | django/utils/dateformat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index 6a91a370e5..b2586ba1ff 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -110,8 +110,8 @@ class TimeFormat(Formatter): return '%02d' % self.data.second def u(self): - "Microseconds" - return self.data.microsecond + "Microseconds; i.e. '000000' to '999999'" + return '%06d' %self.data.microsecond class DateFormat(TimeFormat): |
