gauravjhaindia / restfb

Automatically exported from code.google.com/p/restfb
0 stars 0 forks source link

Unparseable CreateTime #176

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I search any post with  FacebookClient.fetchConnection
2.Acess post.getCreateTime() return to me a null Date Object
3.I debug into your code, and check the method 

public static Date toDateFromLongFormat(String date);

call toDateWithFormatString (date, FACEBOOK_LONG_DATE_FORMAT)

What is the expected output? What do you see instead?

java.text.ParseException: Unparseable date: "1331784257"
    at java.text.DateFormat.parse(DateFormat.java:337)
    at com.restfb.util.DateUtils.toDateWithFormatString(DateUtils.java:132)
    at com.restfb.util.DateUtils.toDateFromLongFormat(DateUtils.java:82)
    at com.restfb.types.Post.getCreatedTime(Post.java:632)

What version of the product are you using? On what operating system?
  I use version 1.6.9

Please provide any additional information below.

Original issue reported on code.google.com by raphael....@gauge.com.br on 15 Mar 2012 at 2:38

GoogleCodeExporter commented 9 years ago
Thanks for letting me know.  Targeting for 1.6.10.

Original comment by m...@xmog.com on 17 Mar 2012 at 12:53

GoogleCodeExporter commented 9 years ago
Fixed in 
https://github.com/revetkn/restfb/commit/09e9f9b41d0251f524127f0270a172febcd99bb
c

Original comment by m...@xmog.com on 2 Sep 2012 at 1:12