Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use time.tzset() to apply timezone changes when we can #1036

Merged
merged 1 commit into from Apr 28, 2017

Commits on Apr 28, 2017

  1. Use time.tzset() to apply timezone changes when we can

    Threading makes this tricky, but this should at least apply any
    'new' timezone whenever it gets changed to the datetime spoke
    thread and the main thread. As I discovered in RHBZ #1433560,
    Python's behaviour seems to have changed between 3.5 and 3.6
    such that changes made to the 'TZ' environment variable don't
    affect Python's "current" timezone (as used by things like the
    datetime module) until `time.tzset()` is called.
    AdamWill committed Apr 28, 2017
    Copy the full SHA
    40adf6e View commit details
    Browse the repository at this point in the history