update : 24.06.2025 16:59:09,35
This commit is contained in:
parent
ece114675a
commit
236399ea0f
@ -25,16 +25,16 @@ from sabron.util import logging
|
||||
|
||||
|
||||
def get_date_message(date):
|
||||
moscow_tz = timezone(timedelta(hours=3), name="MSK")
|
||||
#moscow_tz = timezone(timedelta(hours=3), name="MSK")
|
||||
|
||||
logging.error(str(date))
|
||||
logging.error(str(datetime(2000, 1, 1,0,0,tzinfo=moscow_tz)))
|
||||
#logging.error(str(date))
|
||||
#logging.error(str(datetime(2000, 1, 1,0,0,tzinfo=moscow_tz)))
|
||||
result = "Неопределено"
|
||||
|
||||
if date is None:
|
||||
return "Никогда",100000000000
|
||||
if date<datetime(2000, 1, 1,0,0,tzinfo=moscow_tz):
|
||||
return "Никогда",100000000000
|
||||
#if date<datetime(2000, 1, 1,0,0,tzinfo=moscow_tz):
|
||||
# return "Никогда",100000000000
|
||||
today = datetime.today()
|
||||
interval = today-date
|
||||
interval = interval.total_seconds()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user