Remove UTC import and fix datetime function call
This commit is contained in:
parent
8292cb8cfa
commit
f8bd698848
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from datetime import UTC, datetime
|
||||
from datetime import datetime
|
||||
from typing import TYPE_CHECKING, Optional
|
||||
from uuid import UUID, uuid4
|
||||
|
||||
|
|
@ -10,7 +10,7 @@ if TYPE_CHECKING:
|
|||
|
||||
|
||||
def utc_now():
|
||||
return datetime.now(UTC)
|
||||
return datetime.now(datetime.UTC)
|
||||
|
||||
|
||||
class VariableBase(SQLModel):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue