Return a naive UTC datetime without using deprecated datetime.utcnow().
()
| 6 | |
| 7 | |
| 8 | def utcnow() -> datetime: |
| 9 | """Return a naive UTC datetime without using deprecated datetime.utcnow().""" |
| 10 | # Keep naive UTC values for compatibility with existing DB schema/queries. |
| 11 | return datetime.now(UTC).replace(tzinfo=None) |
no outgoing calls