'isonow' -> 'utcnow'
This commit is contained in:
parent
2a84e18b2e
commit
751c93d59c
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue