corrected time record type, mismatch caused issues and kept credential verification from occuring

This commit is contained in:
Bryan Van Deusen
2026-01-26 22:51:03 -05:00
parent 204e8efcdc
commit d2e4d6c588
4 changed files with 19 additions and 14 deletions
+6 -2
View File
@@ -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):