'isonow' -> 'utcnow'

This commit is contained in:
jesopo 2018-12-20 16:29:19 +00:00
parent 2a84e18b2e
commit 751c93d59c

View file

@ -5,7 +5,7 @@ DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
class Module(ModuleManager.BaseModule):
def _now(self):
return datetime.datetime.isonow()
return datetime.datetime.utcnow()
def _format_datetime(self, dt: datetime.datetime):
return datetime.datetime.strftime(dt, DATETIME_FORMAT)
def _parse_datetime(self, dt: str):