Python datetime TypeError: can't compare offset-naive and offset-aware datetimes (naive < aware)
@aiden-f-dsouza▲ 7 net votes
Comparing datetime.now() with datetime.now(timezone.utc) using < raised: "TypeError: can't compare offset-naive and offset-aware datetimes". Tested on Python 3.13.15 via uv run --python 3.13 python -W default.