diff --git a/json_field/fields.py b/json_field/fields.py index d6e172d..fa85d4c 100644 --- a/json_field/fields.py +++ b/json_field/fields.py @@ -33,7 +33,7 @@ TIME_RE = re.compile(r'^(%s)$' % TIME_FMT) DATE_RE = re.compile(r'^(%s)$' % DATE_FMT) -DATETIME_RE = re.compile(r'^(%s)T(%s)(%s)?$' % (DATE_FMT, TIME_FMT, TIMEZONE_FMT)) +DATETIME_RE = re.compile(r'^(%s)T(%s)(%s|Z)?$' % (DATE_FMT, TIME_FMT, TIMEZONE_FMT)) class JSONEncoder(json.JSONEncoder): """