Autolab icon indicating copy to clipboard operation
Autolab copied to clipboard

Assessment times are not displayed in the correct timezone on course homepage and specific course page.

Open ecwu opened this issue 7 months ago • 1 comments

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:

  1. Set the due date for an assessment (e.g., l1t1) to July 2nd 2024, 2:00 pm CST (UTC +08:00)
  2. 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.
  3. 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

  1. The time setting for assessment l1t1. image

  2. due date displayed at the top of the submission window image

  3. Incorrect start and due date displayed at course assessments page and courses page image image

ecwu avatar Jul 02 '24 08:07 ecwu