Na datum použít <time> místo <span>
This commit is contained in:
parent
a15ba2e9b2
commit
9a8bb26997
1 changed files with 1 additions and 1 deletions
|
@ -16,5 +16,5 @@ def kratke_datum(dt):
|
|||
if not isinstance(dt, datetime):
|
||||
logger.warning(f"Špatné volání filtru {__name__}: {dt}")
|
||||
return False
|
||||
out = f'<span title="{dt.strftime("%d. %m. %Y %H:%M")}">{dt.day}.{dt.month}.<span style="text-decoration:overline">{dt.year%100}</span>'
|
||||
out = f'<time datetime="{dt.isoformat()}" title="{dt.strftime("%d. %m. %Y %H:%M")}">{dt.day}.{dt.month}.<span style="text-decoration:overline">{dt.year%100}</time>'
|
||||
return mark_safe(out)
|
||||
|
|
Loading…
Reference in a new issue