pytz
pytz copied to clipboard
pytz Python historical timezone library and database
**Issue:** The link to this repo doesn't appear on this project's PyPi page. It would be awesome if the link was there.
Hello, I'm having some problems with timezone conversions from "US/Eastern" to "UTC" but only when using the pytz as tzinfo creating a datetime object. here is an example: When I...
Hi, I am having a problem related to Tz Conversion. I found that using `pytz.timezone()` with `astimezone()` method generates invalid timezone conversion adding some extra minutes to the final value....
The timezone `US/Eastern` has been renamed to `America/New_York` in 1995.
Starting from January 2023, Tehran bid farewell to the practice of maintaining two distinct time zones for winter and summer. Instead, a consistent time offset of +3:30 has been adopted...
In Python 2.6+, every entry in `pytz.zone_tab` is a named tuple with fields `code`, `coordinates`, `zone`, and `comment`, as in: ``` >>> [row for row in pytz.zone_tab if row.zone ==...
This PR adds python3 compatibility for gen_tzinfo.py and gen_tests.py, whilst maintaining existing python2 support. Some distributions (fedora) are planning to default `/usr/bin/python` to python3. Other base runtimes (freedesktop-sdk) plan to...
### Bug DstTzInfo.localize() breaks for date '9999-12-31' ### Steps to reproduce `pytz.timezone("US/Pacific").localize(datetime(9999,12,31))` ### Error `OverflowError: date value out of range` ### Notes Bug in https://github.com/stub42/pytz/blob/efeb39501d31897409c834b7340e96726cf57b84/src/pytz/tzinfo.py#L322 Adding 1 day to 9999-12-31...
When I create UTC date after 2038 year and then change the timezone to eg. 'Europe/Warsaw' the DST is wrong. For example, in june Warsaw is in GMT+2 time zone...