Incorrect time displayed for submissions and comments
61izzy opened this issue · 3 comments
61izzy commented
When I check the time of a submission or comment, it displays it in UTC instead of EDT, even though I selected Toronto as my time zone.
61izzy commented
I tested a few other time zones, and they all seem to display UTC time as well.
kiritofeng commented
I suspect this is because
online-judge/judge/jinja2/datetime.py
Line 30 in 89fec36
UTC
timezone hardcoded. We could considering passing the timezone and defaulting to UTC
if no time zone is provided.61izzy commented
I'm not too sure what line 30 does, but it doesn't seem to change the time being displayed when I mess around with it. However, it does make recent submissions display the date rather than "x minutes ago" or "x hours ago". I think the issue is that when assigning abs_time, time is never converted to the user's time zone.