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

Function get_use_tz

tortoise/timezone.py:44–48  ·  view source on GitHub ↗

Get use_tz from env set in Tortoise config.

()

Source from the content-addressed store, hash-verified

42
43@functools.cache
44def get_use_tz() -> bool:
45 """
46 Get use_tz from env set in Tortoise config.
47 """
48 return os.environ.get("USE_TZ", "True").lower() not in ("false", "0", "")
49
50
51@functools.cache

Callers 7

_timestamp_convertMethod · 0.90
create_connectionMethod · 0.90
to_python_valueMethod · 0.90
to_db_valueMethod · 0.90
to_python_valueMethod · 0.90
to_db_valueMethod · 0.90
nowFunction · 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…