Localize rating chart (DMOJ)

This commit is contained in:
cuom1999 2022-03-28 19:29:11 -05:00
parent 0dfad5b0cd
commit 847fc11bc5

View file

@ -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]))