nusmods icon indicating copy to clipboard operation
nusmods copied to clipboard

Make all date and time use local timezone

Open RezwanArefin01 opened this issue 4 years ago • 3 comments

Problem Description

Due to COVID-19, many students are currently stranded overseas. NUSMods have some issues with timezones. For example:

  • The time shown above the timetable is hard-coded in SGT.
  • But the marker that runs on the timetable is showing current time takes local time.
  • Also the time till next class shows time in only SGT.

It is very inconvenient to always convert the time to local time in our mind.

Describe the solution you'd like

Make all times shown in the website use local time / have a settings for choosing timezone.

RezwanArefin01 avatar Aug 10 '21 07:08 RezwanArefin01

After downloading the .ics file and importing to google calendar, the timezone is set to (GMT+00:00) Coordinated Universal Time. When editing for example a lecture event at 10am SG time, google calendar shows 2am at (GMT+00:00).
Screenshot 2021-08-11 101251

VVinter-melon avatar Aug 11 '21 02:08 VVinter-melon

Hi, I'm interested in taking this.

Also, which solution should we choose? Implicitly use local time or have a setting for timezone?

yaofeng-wang avatar Oct 16 '21 01:10 yaofeng-wang

@yaofeng-wang Apologies for the late reply, but if you are still interested in taking this on, I think it's easier to use the implicit local time.

These would be the following sub tasks:

  • [ ] Convert local time to sgt for the marker.
  • [ ] Convert local time to sgt for the time till next class
  • [ ] Fix ics timezone from UTC to Singapore

li-kai avatar Apr 30 '22 02:04 li-kai