timetracker/src/web/common/util/time.py

8 lines
160 B
Python
Raw Normal View History

from datetime import datetime
from django.conf import settings
from zoneinfo import ZoneInfo
def now():
return datetime.now(ZoneInfo(settings.TIME_ZONE))