Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i know if an event is an all day meeting? (Google Calendar)

In the event documentation here it says that the start.date field will be poplulated if an event is an all-day event. But when i create an all-day meeting and then query it with the https://www.googleapis.com/calendar/v3/calendars/{calendar}/events/{event} url the start and end responses dont have a date field, they come back as:

 "start": {
  "dateTime": "2022-08-25T00:00:00+01:00",
  "timeZone": "Europe/London"
 },
 "end": {
  "dateTime": "2022-08-26T00:00:00+01:00",
  "timeZone": "Europe/London"
 },

Picture from the documentation below

enter image description here

Update:

I'm creating a meeting on my calendar, selecting all day then adding a room.

enter image description here

I'm then querying this event using the https://developers.google.com/calendar/api/v3/reference/events/ page. Here i'm putting in my calendar (my email) and the event id. The correct event is returned but the start and end dates come back as this:

enter image description here

like image 398
SamCodeBad Avatar asked Oct 16 '25 23:10

SamCodeBad


1 Answers

This might be a bug:

All-day events containing a room don't include start.date and end.date fields, even though these should be populated in all-day events, according to the docs:

start.date: The date, in the format "yyyy-mm-dd", if this is an all-day event.

Issue Tracker:

I went ahead and filed an issue in Issue Tracker:

  • All-day events containing a room don't include date field

Consider starring this issue in order to keep track of it and to help prioritizing it.

like image 181
Iamblichus Avatar answered Oct 19 '25 05:10

Iamblichus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!