Skip to content

Use dateutil instead of pytz

Michael Hofer requested to merge fix/226/dateutil_pytz into master

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.

Merge request reports