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 timezone Due: 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
Your environment Let us know details such as
Steps To Reproduce Steps to reproduce the behavior:
/courses/<unique-course-id>/assessments/l1t1
). Check the due date displayed at the top of the page. It's displayed correctly./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