Get use_tz from env set in Tortoise config.
()
| 42 | |
| 43 | @functools.cache |
| 44 | def 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 |
no test coverage detected
searching dependent graphs…