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.
Written by Ionuț Arțăriși
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#