autolab / Autolab

Course management service that enables auto-graded programming assignments.
http://www.autolabproject.com/
Apache License 2.0
741 stars 209 forks source link

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

Open ecwu opened 2 days ago

ecwu commented 2 days ago

Your environment Let us know details such as

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