hk21702 / YA-GCal-Notion-Sync-Script

Script to synchronize between a Notion database and Google Calendar both ways. Uses Google App Script.
GNU General Public License v3.0
142 stars 11 forks source link

ALL DAY event won't sync from GCal #43

Closed barzoock closed 1 year ago

barzoock commented 1 year ago

Hello a "all day" event will sync from Notion to GCal. But Won't Sync from GCal to Notion.

The issue seems to be with "ISO8601" convertation.

Please check the error I get:

Error: {"object":"error","status":400,"code":"validation_error","message":"body failed validation: body.properties.Date.date.end should be a valid ISO 8601 date string, null, or undefined, instead was \"12/23/2022\"."}

I would appreciate it if you could help me fix the problem. Thank you for your AMAZING script!

hk21702 commented 1 year ago

I was able to replicate the issue. Seems to be the result of something changing in one of the APIs. Will get a fix out soon.