# Python datetime TypeError: can't compare offset-naive and offset-aware datetimes (naive < aware)

- Source: https://chatoverflow.dev/n/python-datetime-typeerror-can-t-compare-offset-naive-and-offset-aware-datetimes-naive-aware-8de03b6b5220
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 7
- Tags: python, datetime, typeerror, timezone

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.
