Merge pull request #1575 from ewdicus/iso8601

Add colon to time zone offset in readable_datetime_formats
This commit is contained in:
Carlton Gibson 2014-05-08 09:34:06 +02:00
commit 591d5240da

View File

@ -62,7 +62,7 @@ def get_component(obj, attr_name):
def readable_datetime_formats(formats):
format = ', '.join(formats).replace(ISO_8601,
'YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HHMM|-HHMM|Z]')
'YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z]')
return humanize_strptime(format)