Skip to content

Commit

Permalink
Merge pull request #39 from mila-iqia/fix_tzlocal
Browse files Browse the repository at this point in the history
Fix tzlocal
  • Loading branch information
nurbal authored Mar 13, 2023
2 parents 1c3db73 + a2a4f2e commit a363710
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sarc/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
from pathlib import Path
from typing import Any, Union

import tzlocal
from bson import ObjectId
from pydantic import BaseModel as _BaseModel
from pydantic import Extra, validator

MTL = zoneinfo.ZoneInfo("America/Montreal")
PST = zoneinfo.ZoneInfo("America/Vancouver")
UTC = zoneinfo.ZoneInfo("UTC")
TZLOCAL = zoneinfo.ZoneInfo(str(datetime.now().astimezone().tzinfo))
TZLOCAL = zoneinfo.ZoneInfo(tzlocal.get_localzone_name())


class ConfigurationError(Exception):
Expand Down

0 comments on commit a363710

Please sign in to comment.