GothenburgBitFactory / GothenburgBitFactory/tasklib

Using of proper TZ environment

Open
#106 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
159
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Long time now, I have troubles with tools using tasklib due to a custom setting of TZ environment variable ("CET-1", without summertime)

While python is able to work correct with that
```python
>>> import time
>>> time.tzname
('CET', 'CET')
>>> time.strftime('%X %x %Z')
'12:22:02 10/15/21 CET'
```

The Approach of tzlocal using ZoneInfo is completely broken and gives exceptions and wrong results. Some of the major troubles can be patched out of tzlocal by dropping the stupid asserts but the main problem remains that ZoneInfo is not able to parse proper TZ environment.

So please use the python base structures to use timezone instead of the broken tzlocal/ZoneInfo way.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.