简体   繁体   English

Facebook Post graph API中的时差不一致

[英]Inconsistent time difference in facebook post graph API

Recently, i'm making an application which retrieve facebook posts of a page for a certain date. 最近,我正在开发一个应用程序,该应用程序可以检索某个日期的页面Facebook帖子。 The issue that i've encountered is, there are some inconsistencies between the post unix time and the displayed date for some posts. 我遇到的问题是,某些帖子的发布时间和显示日期之间存在一些不一致。

This is an example that i've found: 这是我发现的一个示例:

Created time from JSON reponse : "created_time": "2013-03-09T18:58:20+0000" 通过JSON响应创建的时间:“ created_time”:“ 2013-03-09T18:58:20 + 0000”

Displayed date :March 10, 2013 at 1:58am 显示日期:2013年3月10日上午1:58

The time difference is : 1:58 am - 18: 58 pm = 7 hr 时差为:1:58 am-18:58 pm = 7 hr

then, for another post: Created time from JSON reponse : "created_time": "2013-03-09T19:03:17+0000" 然后,针对另一篇文章:通过JSON响应创建时间:“ created_time”:“ 2013-03-09T19:03:17 + 0000”

Displayed date :March 10, 2013 at 3:03am 显示日期:2013年3月10日上午3:03

The time difference is : 3:03 am - 19: 03 pm = 8 hr 时差为:3:03 am-19:03 pm = 8 hr

And no, I didn't change my timezone inbetween displaying those two JSON response. 不,在显示这两个JSON响应之间,我没有更改时区。 I use graph API and 'since until' parameter with unix timestamp for getting the JSON response. 我使用带有unix时间戳记的图形API和'since until'参数来获取JSON响应。

Is there anyone who can explain this issue? 有谁能解释这个问题? Thanks in advance! 提前致谢! :) :)

After much more time spending on it..i found this helpful link to implement in my project... i hope it may helpful to u also.. 在花费更多的时间后..我发现这个有用的链接可以在我的项目中实施...我希望它对您也有帮助。

How to convert Date from facebook api into android app date format 如何将日期从Facebook API转换为Android应用程序日期格式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM