From 847fc11bc5c9f835d0b3e75b7dc2c8f4431bfe81 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Mon, 28 Mar 2022 19:29:11 -0500 Subject: [PATCH] Localize rating chart (DMOJ) --- judge/views/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/views/user.py b/judge/views/user.py index 2265979..a14617a 100644 --- a/judge/views/user.py +++ b/judge/views/user.py @@ -169,7 +169,7 @@ class UserAboutPage(UserPage): 'ranking': rating.rank, 'link': reverse('contest_ranking', args=(rating.contest.key,)), 'timestamp': (rating.contest.end_time - EPOCH).total_seconds() * 1000, - 'date': date_format(rating.contest.end_time, _('M j, Y, G:i')), + 'date': date_format(timezone.localtime(rating.contest.end_time), _('M j, Y, G:i')), 'class': rating_class(rating.rating), 'height': '%.3fem' % rating_progress(rating.rating), } for rating in ratings]))