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