Google Apps Script Web App可以获取用户的语言和时区吗? [英] Can a Google Apps Script Web App get the user's language and time zone?

查看:44
本文介绍了Google Apps Script Web App可以获取用户的语言和时区吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以Web应用程序发布的GAS是否有可能在活动用户的身份下执行并使用Ui服务作为用户界面来获取用户的首选语言和时区? Session.getActiveUser()可以使用,但是您只能获取电子邮件 Session.getActiveUser().getEmail().
Session.getTimeZone()返回脚本的时区,而不是用户的时区.

Is there any possibility for a GAS published as a Web App executing under the identity of the active user and using the Ui Service for user interface to get the preferred language and time zone of the user? Session.getActiveUser() works but you only get the Email Session.getActiveUser().getEmail().
Session.getTimeZone() returns the time zone of the script, not of the user.

是否有技巧来获取具有语言首选项的Web浏览器ID字符串?

Could there be a trick to get the web browser ID string with the language preference?

推荐答案

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆