update : 24.06.2025 17:03:55,64
This commit is contained in:
parent
584ad0b17e
commit
d0d6d97235
@ -20,8 +20,9 @@ from django.views.static import serve
|
||||
|
||||
from apps.general.models.model_settings import Settings
|
||||
from apps.util.datetime_funcs import get_current_time
|
||||
from sabron.util import logging
|
||||
|
||||
from sabron.util import logging
|
||||
from apps.util import datetime_funcs
|
||||
|
||||
|
||||
def get_date_message(date):
|
||||
@ -36,7 +37,7 @@ def get_date_message(date):
|
||||
#if date<datetime(2000, 1, 1,0,0,tzinfo=moscow_tz):
|
||||
# return "Никогда",100000000000
|
||||
#today = datetime.today()
|
||||
today = timezone.now()
|
||||
today = datetime_funcs.get_current_time()
|
||||
interval = today-date
|
||||
interval = interval.total_seconds()
|
||||
if interval < 0 :
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user