Revert "Fix (tab. doš. řešení): strftime nefunguje, jak jsem si myslel"

This reverts commit 4b03a2d23c.
This commit is contained in:
Jonas Havelka 2022-10-24 20:16:41 +02:00
parent 4b03a2d23c
commit 009cd49f37

View file

@ -155,10 +155,8 @@ class OdevzdavatkoTabulkaFiltrForm(forms.Form):
result = [] result = []
date_str = strftime(DATE_FORMAT, datetime.date.min.timetuple()) result.append((
if date_str[0] == '1': # Někde očividně vrací strftime rok bez nul. strftime(DATE_FORMAT, datetime.date.min.timetuple()), f"Odjakživa"))
date_str = "000" + date_str
result.append((date_str, f"Odjakživa"))
for deadline in m.Deadline.objects.filter( for deadline in m.Deadline.objects.filter(
deadline__lte=timezone.now(), deadline__lte=timezone.now(),