corrected time record type, mismatch caused issues and kept credential verification from occuring
This commit is contained in:
@@ -11,8 +11,12 @@ class Base(DeclarativeBase):
|
||||
|
||||
|
||||
def utcnow():
|
||||
"""Return current UTC time as timezone-aware datetime."""
|
||||
return datetime.now(timezone.utc)
|
||||
"""Return current UTC time as naive datetime (no tzinfo).
|
||||
|
||||
Uses naive datetimes because the database columns are
|
||||
TIMESTAMP WITHOUT TIME ZONE. All datetimes are assumed UTC.
|
||||
"""
|
||||
return datetime.now(timezone.utc).replace(tzinfo=None)
|
||||
|
||||
|
||||
def format_datetime(dt):
|
||||
|
||||
Reference in New Issue
Block a user