class override(ContextDecorator):
Temporarily set the time zone for the current thread.
This is a context manager that uses django.utils.timezone.activate() to set the timezone on entry and restores the previously active timezone on exit.
The timezone argument must be an instance of a tzinfo subclass, a time zone name, or None. If it is None, Django enables the default time zone.
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __init__ |
Undocumented |
Instance Variable | old​_timezone |
Undocumented |
Instance Variable | timezone |
Undocumented |