[mythtv] MacOS python3.9+ IANA Time Zone Support

Roland Ernst rcrernst at gmail.com
Sat Dec 4 10:38:02 UTC 2021


On Sat, Dec 4, 2021 at 1:04 AM John Hoyt <john.hoyt at gmail.com> wrote:

> Apologies, my response this morning had some missing info - that's what I
> get for trying to reply before my morning coffee soaks in.
>
> macports has a package for pytzdata and I've installed that.  Is there a
> necessary import command in the python prompt to make sure it gets called
> correctly?
>
>>
>
There are two different python packages 'pytzdata' and 'tzdata'.
The traceback asked for 'tzdata' ( https://pypi.org/project/tzdata/ ).
According this page, you should not need it :
"It is intended to be a fallback for systems that do not have system time
zone data installed (or don’t have it installed in a standard location)."

Anyway, your feedback pointed me to  the right direction:
I have to check if the 'zoneinfo' package is available *and* the local time
zone can be resolved.
Otherwise, fall back to the time zone handling provided by the bindings in
'MythTV/utility/dt.py'.

Regards,
Roland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-dev/attachments/20211204/c2f7cca8/attachment.htm>


More information about the mythtv-dev mailing list