Microsoft团队:获取用户的时区? [英] Microsoft Teams: get timezone of user?

查看:64
本文介绍了Microsoft团队:获取用户的时区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为MS Teams开发一个机器人,希望了解用户的时区,以便在适当的时间(例如不在深夜)传递消息.

I'm developing a bot for MS Teams and I'm looking to know the timezone of a user, to deliver messages at an appropriate time (e.g. not in the middle of the night).

我没有在bot框架REST API中找到合适的东西.尽管我们收到的消息包含一个"clientInfo.country"属性,这是一个开始,但绝对不足以按我们希望的时间计时消息.

I didn't found something appropriate in the bot framework REST API. Although messages we receive include a 'clientInfo.country' property, which is a start, but definitely not enough to time messages as we would like.

推荐答案

答案是:有一个 localTimestamp 属性可用于获取时间偏移,这对于我来说已经足够了需要.

And the answer is: there’s a localTimestamp property that can be used to get the time offset, which is good enough for what I need.

这篇关于Microsoft团队:获取用户的时区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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