Autolab
Autolab copied to clipboard
Assessment times are not displayed in the correct timezone on course homepage and specific course page.
Your environment Let us know details such as
- Which institution's Autolab you are using: self-deploy
- Operating system: Ubuntu 22.04
- Commit hash 7439e909f98c7d75627d875d00198de09802d9a4
- Timezone is set to: Asia/Shanghai in the Dockerfile for Autolab
Steps To Reproduce Steps to reproduce the behavior:
- Set the due date for an assessment (e.g., l1t1) to July 2nd 2024, 2:00 pm CST (UTC +08:00)
- Go to the submission page for the assessments (
/courses/<unique-course-id>/assessments/l1t1
). Check the due date displayed at the top of the page. It's displayed correctly. - Go back to the course homepage (
/courses
) and the specific course page (/courses/<unique-course-id>/assessments
). The start and end times displayed for the assessments are not converted to the correct timezoneDue: Jul 2 at 2:00am
.
Current behavior
The start and end times displayed for the assessments are not converted to the correct timezone.
Due date July 2nd 2024, 2:00 pm CST (UTC +08:00) is displayed as Due: Jul 2 at 2:00am
.
Expected behavior
Display the start and end times in correct timezone. Due date July 2nd 2024, 2:00 pm CST (UTC +08:00) should display as Due: Jul 2 at 2:00pm
.
Screenshots
-
The time setting for assessment l1t1.
-
due date displayed at the top of the submission window
-
Incorrect start and due date displayed at course assessments page and courses page