fix date
This commit is contained in:
parent
d40832aacc
commit
a1e09a37f8
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ class Event(models.Model):
|
|||
while len(start) < 3:
|
||||
start.append(1)
|
||||
start_only_month = True
|
||||
start = [int(p) for p in start]
|
||||
end = [int(p) for p in end]:
|
||||
|
||||
display_date = datetime(*start).strftime('%d %B, $y')
|
||||
if start_only_month:
|
||||
|
|
Loading…
Reference in a new issue