9 lines
241 B
Python
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
|