gcalendr
gcalendr copied to clipboard
Problem with 'end_date' for events that last several days?
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).

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