java facebook webapp create event date timezone -


java fb api creating facebook web application, create following required params.

http://developers.facebook.com/docs/reference/rest/events.create

problem start_time , end_time .

just assume have date objects without timezone.

date startdate = new date(); date enddate = new date(); 

can guide me how convert require fb format.

note: start_time , end_time times input event creator, converted utc after assuming in pacific time (daylight savings or standard, depending on date of event), converted unix epoch time.

i believe need convert seconds milliseconds.

startdate = (int) (system.currenttimemillis() / 1000l); enddate = startdate + (1*60*60*24); 

where

(1*60*60*24) = 1 day, replace length of event. 

from results, offset (if required) can worked out , added startdate creation.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -