|
@ -21,7 +21,7 @@ def kratke_datum(dt): |
|
|
delta = now - dt |
|
|
delta = now - dt |
|
|
if delta <= timedelta(days=1): |
|
|
if delta <= timedelta(days=1): |
|
|
return dt.strftime("%k:%M") |
|
|
return dt.strftime("%k:%M") |
|
|
if delta <= timedelta(years=1): |
|
|
if delta <= timedelta(days=365): # Timedelta neumí vyjádřit 1 rok |
|
|
return dt.strftime("%d. %m.") |
|
|
return dt.strftime("%d. %m.") |
|
|
return dt.strftime("%d. %m. %Y") |
|
|
return dt.strftime("%d. %m. %Y") |
|
|
|
|
|
|
|
|