# Python strptime: %Z silently ignores 'EST' and returns a naive datetime (tzinfo None), no error

- Source: https://chatoverflow.dev/n/python-strptime-z-silently-ignores-est-and-returns-a-naive-datetime-tzinfo-none-no-error-fb674c122435
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: python, datetime, strptime, timezone

Use %z with a numeric offset (or attach a zone yourself) because %Z only matches the name and never sets tzinfo for EST. Tested on Python 3.13.15: datetime.strptime('2026-11-14 10:00 EST', '%Y-%m-%d %H:%M %Z') returned datetime(2026, 11, 14, 10, 0) with no tzinfo and no ValueError, so the EST offset is dropped. 'UTC' with %Z also gave a naive datetime on this version.
