Odd Issue of Date Changing in Script Output

前端 未结 3 1698
孤街浪徒
孤街浪徒 2020-12-20 09:25

A colleague of mine has written a Google Apps script to automate a workflow (approving room comp requests at a hotel). The script, by and large, seems to be functioning as

3条回答
  •  难免孤独
    2020-12-20 09:42

    Please ensure that the timezone of the spreadsheet (located in File > Spreadsheet settings and the timezone of the script project (located in File > Project properties) are both set correctly. The timezone of the spreadsheet controls how date/time values are read from cells, while the timezone of the script controls the default for new Date objects, triggers, etc.

提交回复
热议问题