tzlocal icon indicating copy to clipboard operation
tzlocal copied to clipboard

A Python module that tries to figure out what your local timezone is

Results 9 tzlocal issues
Sort by recently updated
recently updated
newest added

Error: keyerror "cron" pkg_resources.DistributionNotFound: backports.zoneinfo; python_version , "3.9" {'tzlocal'}

Fixes https://github.com/regebro/tzlocal/issues/127 by adding a break to the while-loop that checks for valid paths from a simlink from /etc/localtime. The behavior of the loop is to check for valid files...

Python and tzlocal version: tzlocal version 4.2 Python version Python 3.8.5 OS info: NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" HOME_URL="https://amazonlinux.com/" Stack trace: Python...

My timezone (CET-1) is not able to express as Continent/City. It would be only true in the time between End of October and End of March. There is no timezone...

I just ran into an issue where on my local machine `get_localzone()` returns a `_PytzShimTimezone()` wrapping a `ZoneInfo()` and providing the `unwrap_shim()` method, but in an Alpine Docker it returns...

I'm unable to import or run the function get_localzone_name. I've tried uninstalling and reinstalling a few times and rolling back to previous versions. I'm in a conda env but I've...

The symlinks from the git repository are converted to regular files in sdist archive. As a result, I get a few test failures when running the test suite from it:...

``` In [1]: import tzlocal In [2]: tzlocal.get_localzone().zone --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[2], line 1 ----> 1 tzlocal.get_localzone().zone AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'zone' ```...

Hi, On [O365](https://github.com/O365/python-o365/) we use tzlocal to get a default timezone for our users. One of our users has reported an issue https://github.com/O365/python-o365/issues/1077. It seems that on his system tzlocal...