diff options
| author | Elliott | 2014-05-07 11:37:20 -0700 |
|---|---|---|
| committer | Elliott | 2014-05-07 11:37:20 -0700 |
| commit | 11115fde9cc8f70dfd85ce937893d67fd061f3c1 (patch) | |
| tree | 091d6e5d54f25741e5643b1dcd7d67413102e7d0 /rest_framework/fields.py | |
| parent | 2a27674a7971a60050d4530a0852a864b2065adb (diff) | |
| download | django-rest-framework-11115fde9cc8f70dfd85ce937893d67fd061f3c1.tar.bz2 | |
Add colon to time zone offset in readable_datetime_formats
Diffstat (limited to 'rest_framework/fields.py')
| -rw-r--r-- | rest_framework/fields.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 68b95682..9f53a000 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -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) |
