Time error while google calendar integration
# support
f
Hey i integrated google calendar with vapi but after booking an appointment its showing wrong time in google calendar the date is correct only issue is with time , in calendar time zone its america Chicago in vapi agent prompt its the same then why the error coming up? Can anybody help me
v
Thanks for sharing the details! To help diagnose the issue, could you confirm whether the
startDateTime
and
endDateTime
values you are sending to the Google Calendar integration are in ISO 8601 format and explicitly include the "America/Chicago" timezone? This will help narrow down if the problem is with the datetime formatting or the timezone handling. If you need more guidance, the [Vapi Google Calendar integration documentation](https://docs.vapi.ai/tools/google-calendar) has best practices for time zone handling. Source: - [Vapi Google Calendar Integration Documentation](https://docs.vapi.ai/tools/google-calendar)
Please Check my prompt
v
To help resolve the time error: Could you please share the exact
startDateTime
,
endDateTime
, and
timeZone
values that are being sent to the Google Calendar integration when the event is created? This will help determine if the issue is with the datetime formatting or the time zone handling. For reference, all datetime fields should be in ISO 8601 format and the
timeZone
should be explicitly set to "America/Chicago" as per the [Vapi Google Calendar integration documentation](https://docs.vapi.ai/tools/google-calendar). Source: - [Vapi Google Calendar Integration Documentation](https://docs.vapi.ai/tools/google-calendar)
To help resolve the time error: Could you please share the exact
startDateTime
,
endDateTime
, and
timeZone
values that are being sent to the Google Calendar integration when the event is created? This will help determine if the issue is with the datetime formatting or the time zone handling. For reference, all datetime fields should be in ISO 8601 format and the
timeZone
should be explicitly set to "America/Chicago" as per the [Vapi Google Calendar integration documentation](https://docs.vapi.ai/tools/google-calendar). Source: - [Vapi Google Calendar Integration Documentation](https://docs.vapi.ai/tools/google-calendar)
Suggestion: Make sure that when you trigger
google.calendar.event.create
, you are passing the
startDateTime
and
endDateTime
fields in ISO 8601 format and explicitly include the
"America/Chicago"
timezone in the
timeZone
field of the payload. For example:
Copy code
json
{
  "summary": "Consultation",
  "startDateTime": "2025-05-27T14:00:00",
  "endDateTime": "2025-05-27T14:30:00",
  "timeZone": "America/Chicago"
}
This ensures Google Calendar interprets the time correctly. Double-check that your prompt and tool logic are not just mentioning the timezone, but actually passing it in the event creation call. Reference: [Vapi Google Calendar Integration Documentation](https://docs.vapi.ai/tools/google-calendar) Source: - [Vapi Google Calendar Integration Documentation](https://docs.vapi.ai/tools/google-calendar)
Suggestion: Make sure that when you trigger
google.calendar.event.create
, you are passing the
startDateTime
and
endDateTime
fields in ISO 8601 format and explicitly include the
"America/Chicago"
timezone in the
timeZone
field of the payload. For example:
Copy code
json
{
  "summary": "Consultation",
  "startDateTime": "2025-05-27T14:00:00",
  "endDateTime": "2025-05-27T14:30:00",
  "timeZone": "America/Chicago"
}
This ensures Google Calendar interprets the time correctly. Double-check that your prompt and tool logic are not just mentioning the timezone, but actually passing it in the event creation call. Reference: [Vapi Google Calendar Integration Documentation](https://docs.vapi.ai/tools/google-calendar) Source: - [Vapi Google Calendar Integration Documentation](https://docs.vapi.ai/tools/google-calendar)
Suggestion: To avoid time errors, make sure your assistant's prompt or tool configuration explicitly sets the
timeZone
field to
"America/Chicago"
when creating the Google Calendar event. For example, ensure your event creation payload includes:
Copy code
json
{
  "summary": "Appointment",
  "startDateTime": "2025-05-30T14:00:00",
  "endDateTime": "2025-05-30T14:30:00",
  "timeZone": "America/Chicago"
}
This ensures Google Calendar interprets the time correctly. Double-check that your prompt or backend logic always passes the correct timezone value when scheduling events. [See Vapi Google Calendar integration best practices](https://docs.vapi.ai/tools/google-calendar). Source: - [Vapi Google Calendar Integration Documentation](https://docs.vapi.ai/tools/google-calendar)
Suggestion: To avoid time errors, make sure your assistant's prompt or tool configuration explicitly sets the
timeZone
field to
"America/Chicago"
when creating the Google Calendar event. For example, ensure your event creation payload includes:
Copy code
json
{
  "summary": "Appointment",
  "startDateTime": "2025-05-30T14:00:00",
  "endDateTime": "2025-05-30T14:30:00",
  "timeZone": "America/Chicago"
}
This ensures Google Calendar interprets the time correctly. Double-check that your prompt or backend logic always passes the correct timezone value when scheduling events. [See Vapi Google Calendar integration best practices](https://docs.vapi.ai/tools/google-calendar). Source: - [Vapi Google Calendar Integration Documentation](https://docs.vapi.ai/tools/google-calendar)
Suggestion: To avoid time errors, make sure when creating the Google Calendar event you explicitly set both the
startDateTime
and
endDateTime
in ISO 8601 format and include the
timeZone
field as
"America/Chicago"
. For example:
Copy code
json
{
  "summary": "Appointment",
  "startDateTime": "2025-05-27T14:00:00",
  "endDateTime": "2025-05-27T14:30:00",
  "timeZone": "America/Chicago"
}
Double-check that your assistant's code or tool call includes these fields as shown above to ensure the correct time is reflected in Google Calendar. [See best practices in the Vapi Google Calendar integration documentation.](https://docs.vapi.ai/tools/google-calendar) Source: - [Vapi Google Calendar Integration Documentation](https://docs.vapi.ai/tools/google-calendar)
Suggestion: To avoid time errors, make sure when creating the Google Calendar event you explicitly set both the
startDateTime
and
endDateTime
in ISO 8601 format and include the
timeZone
field as
"America/Chicago"
. For example:
Copy code
json
{
  "summary": "Appointment",
  "startDateTime": "2025-05-27T14:00:00",
  "endDateTime": "2025-05-27T14:30:00",
  "timeZone": "America/Chicago"
}
Double-check that your assistant's code or tool call includes these fields as shown above to ensure the correct time is reflected in Google Calendar. [See best practices in the Vapi Google Calendar integration documentation.](https://docs.vapi.ai/tools/google-calendar) Source: - [Vapi Google Calendar Integration Documentation](https://docs.vapi.ai/tools/google-calendar)
f
Already done still same
In google sheets everything is fine its only happening in google calendar
p
Ensure all tools use the exact same time zone and ISO 8601 date-time format without conflicting offsets.