Closed ashenshugarRET closed 3 years ago
What version of pytz are you using?
I was using version 2019.1 and updated to version 2021.1
richard@WeatherStation:~$ sudo pip install --upgrade pytz
Requirement already satisfied: pytz in /usr/local/lib/python3.7/dist-packages (2019.1
Collecting pytz
Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)
|████████████████████████████████| 510 kB 2.6 MB/s
Installing collected packages: pytz
Attempting uninstall: pytz
Found existing installation: pytz 2019.1
Uninstalling pytz-2019.1:
Successfully uninstalled pytz-2019.1
Successfully installed pytz-2021.1
Thanks
Does pywws v 21.3.0 work after updating pytz? (You can run 'python3 -m pywws.timezone' to test it.)
Yes, it works:
richard@WeatherStation:/usr/local/lib/python3.7/dist-packages/pywws$ python3 -m pywws.timezone
using timezone Europe/London
current time
2021-03-28 09:30:45 UTC
2021-03-28 10:30:45+01:00 BST
2021-03-28 09:30:45+00:00 UTC
most recent 9am 2021-03-28 08:00:00 UTC
most recent 9pm 2021-03-27 21:00:00 UTC
Ambiguous / missing times in "Europe/London"
2020-03-28 23:15:00 UTC = 2020-03-28 23:15:00+00:00 GMT
2020-03-29 00:15:00 UTC = 2020-03-29 00:15:00+00:00 GMT
2020-03-29 01:15:00 UTC = 2020-03-29 02:15:00+01:00 BST
2020-03-29 02:15:00 UTC = 2020-03-29 03:15:00+01:00 BST
2020-10-24 23:15:00 UTC = 2020-10-25 00:15:00+01:00 BST
2020-10-25 00:15:00 UTC = 2020-10-25 01:15:00+01:00 BST
2020-10-25 01:15:00 UTC = 2020-10-25 01:15:00+00:00 GMT
2020-10-25 02:15:00 UTC = 2020-10-25 02:15:00+00:00 GMT
DST transitions in "America/St_Johns"
midnight 2018-03-11 03:30:00 UTC 2018-03-11 00:00:00-03:30 NST
midnight 2018-03-12 02:30:00 UTC 2018-03-12 00:00:00-02:30 NDT
midnight 2018-11-04 02:30:00 UTC 2018-11-04 00:00:00-02:30 NDT
midnight 2018-11-05 03:30:00 UTC 2018-11-05 00:00:00-03:30 NST
Thanks, now I can narrow down the minimum version of pytz needed and then modify pywws accordingly.
Version 21.3.0 is crashing with the following error post the clock change:
Rolling back to the previous version with:
sudo pip3 install pywws==20.1.0
Fixes the issue so the problem is with the most recent update.
Thanks