From d02d255808260405ef2a366da969488d183dc7d4 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 12 Apr 2022 14:11:27 +0100 Subject: [PATCH] year --- app/event/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/event/models.py b/app/event/models.py index 67c11c0..bbab99e 100644 --- a/app/event/models.py +++ b/app/event/models.py @@ -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