year
This commit is contained in:
parent
95572b76dd
commit
d02d255808
1 changed files with 2 additions and 2 deletions
|
@ -48,11 +48,11 @@ class Event(models.Model):
|
|||
start = [int(p) for p in start]
|
||||
end = [int(p) for p in end]
|
||||
|
||||
display_date = datetime(*start).strftime('%d %B, $y')
|
||||
display_date = datetime(*start).strftime('%d %B, %Y')
|
||||
if start_only_month:
|
||||
display_date = ' '.join(display_date.split(' ')[1:])
|
||||
if end != start:
|
||||
end_date = datetime(*end).strftime('%d %B, $y')
|
||||
end_date = datetime(*end).strftime('%d %B, %Y')
|
||||
if end_only_month:
|
||||
end_date = ' '.join(end_date.split(' ')[1:])
|
||||
display_date += ' — ' + end_date
|
||||
|
|
Loading…
Reference in a new issue