mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-12 21:04:11 +08:00
7 lines
207 B
Python
7 lines
207 B
Python
|
|
from datetime import datetime, timezone
|
||
|
|
|
||
|
|
|
||
|
|
def utcnow() -> datetime:
|
||
|
|
"""Naive UTC timestamp (no tzinfo). We always treat DB datetimes as UTC."""
|
||
|
|
return datetime.now(timezone.utc).replace(tzinfo=None)
|