Time Zone in script is and in Google Sheets is different than Google Calendar

空扰寡人 提交于 2021-02-11 14:21:36

问题


I am putting the time zone in as GMT, which matches my calendar settings. However, when the dates and times export into Google Sheets it is coming up an hour prior to the times that are listed on the calendar. Please help to determine what is going wrong.

This is my code I am pulling from my calendar of events:

var events = cal.getEvents(new Date("October 2, 2018 00:00:00 GMT"), new Date("October 8, 2018 23:59:59 GMT"), {search: '-project123'});

The time in the calendar states 9:25 GMT but when it shows up in Google Sheets it is showing as 8:25

来源:https://stackoverflow.com/questions/52542141/time-zone-in-script-is-and-in-google-sheets-is-different-than-google-calendar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!