gcalendr icon indicating copy to clipboard operation
gcalendr copied to clipboard

Problem with 'end_date' for events that last several days?

Open MargotBr opened this issue 5 years ago • 0 comments

Hello Andrie,

I'm encountering problems to extract information from events that last several days.

Here is an example of an event that lasts 2 full days (i.e. 2021-02-09 and 2021-02-10).

Capture d’écran 2020-03-31 à 11 02 08

Her is my code:

library(gcalendr)
library(dplyr)

my_cal_id <- "[email protected]"
calendar_auth(my_cal_id)

events <- calendar_events(my_cal_id, days_in_past = 0, days_in_future = 365)

events %>%
     filter(start_date == "2021-02-09") %>%
     select(start_date, end_date)`

The calendar_events() function returns for this event : start_date = 2021-02-09 and end_date = 2021-02-09

And not start_date = 2021-02-09 and end_date = 2021-02-10

Is there another solution for this kind of problematic?

Thanks in advance,

Margot

MargotBr avatar Mar 31 '20 10:03 MargotBr