MCPcopy
hub / github.com/tortoise/tortoise-orm / get_timezone

Function get_timezone

tortoise/timezone.py:52–56  ·  view source on GitHub ↗

Get timezone from env set in Tortoise config.

()

Source from the content-addressed store, hash-verified

50
51@functools.cache
52def get_timezone() -> str:
53 """
54 Get timezone from env set in Tortoise config.
55 """
56 return os.environ.get("TIMEZONE") or "UTC"
57
58
59def now() -> datetime:

Callers 2

to_python_valueMethod · 0.90
get_default_timezoneFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…