Use dateutil instead of pytz
Created by: Mael-Le-Garrec
Fixes #226 (closed)
dateutil.tz works a bit differently than pytz, the localize
function for instance can't be used anymore.
All datetimes are here zone-aware and one change to be noted is that a AccDatetime object can now be created directly with a tzinfo
instead of using the .local
property on it.
dt.astimezone
returns a new object, so does dt.replace
, we would always get a AccDatetime object in UTC.