Microsoft Teams:获取用户的时区? [英] Microsoft Teams: get timezone of user?
本文介绍了Microsoft 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).
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.
解决方案
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 Teams:获取用户的时区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文