test/apps/util/datetime_funcs.py
zakhy 8303edb8af Изменил столбец в позиционировании людей.
Теперь подсвечивается ячейка, в зависимости от времени координат
2025-04-01 11:48:17 +07:00

9 lines
241 B
Python

from django.conf import settings
from django.utils import timezone
def get_current_time():
current_time = timezone.now()
current_time_timezoned = current_time.astimezone(settings.TIME_ZONE_OBJECT)
return current_time_timezoned