I have datestrings that look like this: '2015-03-02T10:00:00Z'. On my local machine, dateutil.parser.parse()
yields datetime objects with timezone UTC, as I would expect. But in a different environment (when I deploy to iron.io), it parses the same strings and gives the resulting datetimes tzlocal()
as their tzinfo
.
Is there a known reason that should ever happen? Why would environment affect how that Z
is parsed?
(both environments should be Python 2.7)