Skip to content

latest versions of tzlocal leads to 0xC004F074 error  #140

@kinotenn

Description

@kinotenn

The latest versions of tzlocal such as 3.0, will lead to a 0xC004F074 error while activating, as with these versions, tzlocal.get_localzone() losts its localize() method.

Effected PY file: pykms_Base.py
Row: 127
Original script:

tz = get_localzone()
local_dt = tz.localize(requestDatetime)

Solution:

tz = get_localzone()
from datetime import datetime
local_dt = datetime.fromtimestamp(requestDatetime.timestamp(), tz=tz)

Or to specify the version of tzlocal to 2.x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions