Last Updated: February 25, 2016
·
1.578K
· mapleoin

dateutil.parse timezone

dateutil.parse gives the resulting datetime object a timezone based on the system locale when the datetime string does not have a timezone. If the system locale is UTC, the datetime object will have its timezone set to dateutil.tz.tzlocal, otherwise it will be dateutil.tz.tzutc. Also, apparently, tzlocal != tzutc in comparisons.