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
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