When I try to format 2015-05-29T19:30:00+08:00 from google calendar api;
return \Carbon\Carbon::createFromTimeStamp(
strtotime('2015-05-29T19:30:00+08:00')
);
I get the result 2015-05-29 11:30:00 But the start date of the event in my google calendar is exactly 07:30PM One thing is that if I try to add a ->diffForHumans(); I get the result:
16 minutes ago (Note: the time I run the code is 7:46PM)
Can you help me to understand what is going on in here.
Aucun commentaire:
Enregistrer un commentaire