Revert "Fix (tab. doš. řešení): strftime nefunguje, jak jsem si myslel"
This reverts commit 4b03a2d23c
.
This commit is contained in:
parent
4b03a2d23c
commit
009cd49f37
1 changed files with 2 additions and 4 deletions
|
@ -155,10 +155,8 @@ class OdevzdavatkoTabulkaFiltrForm(forms.Form):
|
|||
|
||||
result = []
|
||||
|
||||
date_str = strftime(DATE_FORMAT, datetime.date.min.timetuple())
|
||||
if date_str[0] == '1': # Někde očividně vrací strftime rok bez nul.
|
||||
date_str = "000" + date_str
|
||||
result.append((date_str, f"Odjakživa"))
|
||||
result.append((
|
||||
strftime(DATE_FORMAT, datetime.date.min.timetuple()), f"Odjakživa"))
|
||||
|
||||
for deadline in m.Deadline.objects.filter(
|
||||
deadline__lte=timezone.now(),
|
||||
|
|
Loading…
Reference in a new issue