bobolounna / restfb

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

getting start_time or end_time from event returns null if the date is of the format yyyy-MM-dd #199

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.DefaultFacebookClient client = new DefaultFacebookClient(token);
                Connection<Event> myEvents = client.fetchConnection(connection, Event.class);
List<Event> list = myEvents.getData();
/*** loop ***/
list.get(i).getEndTime(); 

What is the expected output? What do you see instead?
Expected: The date of the end of the event (2012-08-07).
Obtained: Null
Instead when the event date is of the form (yyyy-MM-dd'T'HH:mm:ssZ) the 
returned Date is correct

What version of the product are you using? On what operating system?
RestFb version 1.6.9. OS: Ubuntu 12.04 x64

Original issue reported on code.google.com by scavuzzo...@gmail.com on 6 Aug 2012 at 5:27

GoogleCodeExporter commented 8 years ago
Thanks for the heads-up.  I'll fix this.

Original comment by m...@xmog.com on 24 Aug 2012 at 7:53

GoogleCodeExporter commented 8 years ago
Fixed in 
https://github.com/revetkn/restfb/commit/5b8c1eb1090302a942c37b2a1dd08dd791f39af
5

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