本文介绍了用户的时区如何在Facebook中编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要检查用户的时区...但是我找不到如何定义真的。

说:用户的时区偏离UTC

I need to check user's time zone... but I can't find how it defined really.
The reference API says : The user's timezone offset from UTC

现在开始维基百科,这些是。

以印度为例:UTC + 05:30。

Now on Wikipedia these are the timezone possible.
Take India as an example : UTC+05:30.

所以 Facebook用户区域时区如何编码

由于我在欧洲,我自己的时区是:2,其实应该是1,但我认为夏天的时间是建立在Howerver我不知道肯定。

So how does facebook encode this in users's field timezone.
Since I'm in Europe my own timezone is : 2, actually it should be 1 but I presume the summer time is build in. Howerver I don't know for sure.

推荐答案

使用图形资源管理器使用有效的令牌(或请求令牌),并查看一个示例。你会看到时区是代表UTC前后的小时数。

Use the graph explorer with a valid token (or request a token) and look at an example. You'll see that the timezone is a number representing the hours ahead or behind UTC.

我现在是1,这是BST(UTC + 1小时)。我相信你们在法国将是2岁(夏天是自动的),旧金山将是-7岁。印度将是5.5

Mine is currently 1, which is BST (UTC + 1 hour). I believe yours, being in France, will be 2 (summertime is automatic), and San Francisco will be -7. India will be 5.5

这篇关于用户的时区如何在Facebook中编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 20:09