Support » Plugin: Simple Calendar - Google Calendar Plugin » [add-to-gcal-link] bug

  • If you use [add-to-gcal-link] with a multi-day all-day event, each subsequent day is shown with a finish date 1 day later. So an event 24th June – 27th June appears (in the grid layout for example) as 24 June – 27th June on 1st day, 24th June – 28th June the next day, 24th June – 29th June the 3rd day and so on.

    Bug is in:
    public function get_add_to_gcal_url
    $end_dt_raw = $is_all_day ? $event->end_dt->addDay() : $event->end_dt;
    I think should be:
    $end_dt_raw = $is_all_day ? $event->end_dt->copy()->addDay() : $event->end_dt;

    So as to avoid bumping the event finish data each iteration.

  • You must be logged in to reply to this topic.