1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #10825: fixed the 'U' format code to dateformat (and the date/now filter/tag). Thanks to gsong and mir.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10716 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss
2009-05-08 13:39:37 +00:00
parent f7d01c49e9
commit 2af75b485d
5 changed files with 64 additions and 10 deletions

View File

@@ -37,7 +37,7 @@ u'th'
u'31'
>>> no_tz or format(my_birthday, 'T') == 'CET'
True
>>> no_tz or format(my_birthday, 'U') == '300531600'
>>> no_tz or format(my_birthday, 'U') == '300315600'
True
>>> format(my_birthday, 'w')
u'0'