MCPcopy
hub / github.com/django/django / get_current_timezone

Function get_current_timezone

django/utils/timezone.py:64–66  ·  view source on GitHub ↗

Return the currently active time zone as a tzinfo instance.

()

Source from the content-addressed store, hash-verified

62
63
64def get_current_timezone():
65 """Return the currently active time zone as a tzinfo instance."""
66 return getattr(_active, "value", get_default_timezone())
67
68
69def get_current_timezone_name():

Callers 5

messageMethod · 0.90
localtimeFunction · 0.85
make_awareFunction · 0.85
make_naiveFunction · 0.85

Calls 1

get_default_timezoneFunction · 0.85

Tested by

no test coverage detected