I'm using version 2.4.1 in both a local GAE environment as well as in a local ipython instance.
In both I attempt to parse the string using:
asdf = dateutil.parser.parse(u'2014-06-01T00:00:00.000Z')
print asdf.tzinfo
On the local machine, this properly shows tzutc as the result
When using the GAE environment, this instead returns a datetime with tzlocal
It looks like this is being set in parser.py at line 424 (425 after my pdb insertion)
(Pdb) l
420 raise ValueError("Offset must be tzinfo subclass, "
421 "tz string, or int offset.")
422 ret = ret.replace(tzinfo=tzinfo)
423 elif res.tzname and res.tzname in time.tzname:
424 import pdb; pdb.set_trace()
425 -> ret = ret.replace(tzinfo=tz.tzlocal())
I'm not sure what the issue is but this seems very strange.
I'm using version 2.4.1 in both a local GAE environment as well as in a local ipython instance.
In both I attempt to parse the string using:
On the local machine, this properly shows tzutc as the result
When using the GAE environment, this instead returns a datetime with tzlocal
It looks like this is being set in parser.py at line 424 (425 after my pdb insertion)
I'm not sure what the issue is but this seems very strange.