From b70960fc58aad2652897af15a38b2a63de80f85c 2013-07-03 23:02:15 From: MinRK Date: 2013-07-03 23:02:15 Subject: [PATCH] allow just the trailing Z for timezone --- diff --git a/IPython/utils/jsonutil.py b/IPython/utils/jsonutil.py index 4449128..5908bd0 100644 --- a/IPython/utils/jsonutil.py +++ b/IPython/utils/jsonutil.py @@ -33,7 +33,7 @@ next_attr_name = '__next__' if py3compat.PY3 else 'next' # timestamp formats ISO8601="%Y-%m-%dT%H:%M:%S.%f" -ISO8601_PAT=re.compile(r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+(Z?[\+\-]\d{2}:?\d{2})?$") +ISO8601_PAT=re.compile(r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z?([\+\-]\d{2}:?\d{2})?$") #----------------------------------------------------------------------------- # Classes and functions