使用inTimeZone时,基于Google Scripts的基于时间的触发器无法正常工作

时间:2019-04-03 15:23:22

标签: google-apps-script

由于某些原因,Google脚本未使用创建触发器时通过inTimeZone()设置的指示时区,而是使用了不同的时区(不是本地的,不是项目的)

function CreateNewTriggers() {  
 ScriptApp.newTrigger("Timer_NZ_T1").timeBased().atHour(T1).nearMinute(16).everyDays(1).inTimezone("Pacific/Auckland").create();
}

0 个答案:

没有答案
相关问题