【发布时间】:2018-09-17 20:01:19
【问题描述】:
所以我希望我的插件在其功能中使用用户时区,如何在清单中设置它?
{
"oauthScopes": [
"https://www.googleapis.com/auth/gmail.readonly",
"https://www.googleapis.com/auth/gmail.send",
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/script.container.ui",
"https://www.googleapis.com/auth/script.scriptapp",
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/script.storage"
],
"dependencies": {
},
"exceptionLogging": "STACKDRIVER",
"timeZone": "GMT"
}
我的意思是,来自美国或印度的用户可能会使用插件,他们应该使用他们的时区运行插件。
【问题讨论】:
-
如果您想使用 Google Apps 脚本修改 Manifests 文件 (
appsscript.json),使用这个库怎么样? github.com/tanaikech/ManifestsApp如果这不是你想要的,我很抱歉。
标签: google-apps-script timezone manifest.json