jiayizhg / smart-meeting-system

1 stars 1 forks source link

Convert date and time to the correct format and time zone #45

Open YuminWang18 opened 9 months ago

YuminWang18 commented 9 months ago

Describe the bug

The Google Calendar API returns date and time in the ISO 8601 format, for example, "2022-12-19T21:24:54.144Z". However, for compatibility with vue-simple-calendar, we need this format to be converted into "yyyy-mm-dd HH:MM:SS". But it is not working. Also need help with converting the date and time in eastern time zone

Expected behavior The Google Calendar API returns date and time in the ISO 8601 format, for example, "2022-12-19T21:24:54.144Z". However, for compatibility with vue-simple-calendar, we need this format to be converted into "yyyy-mm-dd HH:MM:SS" and for now, in eastern time zone

jiayizhg commented 9 months ago

Try to set the time zone for events while fetching them from Google Calendar