feat(api): fixed /templates time conversion
This commit is contained in:
parent
de84d88d47
commit
06b8366fab
1 changed files with 2 additions and 0 deletions
|
|
@ -95,6 +95,8 @@ class TimeUTC:
|
|||
def datetime_to_timestamp(date):
|
||||
if date is None:
|
||||
return None
|
||||
if isinstance(date, str):
|
||||
return TimeUTC.human_to_timestamp(date, "%Y-%m-%dT%H:%M:%S.%f")
|
||||
return int(datetime.timestamp(date) * 1000)
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue