pdincubus / JSONDerulo

JSON feed getter-er for MODX Revolution CMS
Other
26 stars 10 forks source link

Incorrect start and end dates in google calendar #24

Closed BigBlockStudios closed 9 years ago

BigBlockStudios commented 9 years ago

Small issue with the google calendar dates:

'eventEnd' => strtotime($event->start->dateTime), 'eventStart' => strtotime($event->end->dateTime),

a pretty obvious fix, just FYI for your next update.

andrewmfraser commented 9 years ago

eventEnd isn't implemented at the moment I'll sort that, but I don't see any issue with eventStart. If you look at https://github.com/pdincubus/JSONDerulo/blob/master/v2/snippet.JSONDerulo.php#L390-399 you can see that it fetches the date rather than the dateTime if it's an all day event otherwise for an all day event no date will be returned.

We'll have to do the same with eventEnd, passing either date or dateTime depending on the type of event.

However at the moment #23 seems to be more of a problem, all the times are 1 hour out, are you seeing the same thing?

andrewmfraser commented 9 years ago

I see now you're using an older version. Once we sort #23 I'm sure @pdincubus will rebuild the transport package and release an update.

BigBlockStudios commented 9 years ago

I just downloaded what was in the repo. and switched the date placeholders around. it seems to work enough for me for right now.