Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`datetime.now()` returns a naive timestamp in the local TZ. When formatting this timestamp, `%z` and `%Z` directives would therefore always be empty. This commit calls `.astimezone()` to attach the system TZ to this timestamp. `%z` and `%Z` directives when formatting the timestamp are now respected.
- Loading branch information