Skip to content

Mocking tzlocal #463

@jbrockmendel

Description

@jbrockmendel

I'm debugging an issue involving tzlocal and need to test values of tzlocal() other than "mine". It looks like a synthetic tzlocal can be generated by patching time.timezone and possibly time.daylight, time.altzone. So the question is:

a) Is there a better way of simulating different tzlocals?
b) Is there a list of valid tzlocal values (or time.timezone/time.daylight./time.altzone triples) for iterating over?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions