You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a result, all Date properties filled using notionapi will have the time part visible in the Notion UI (until the user manually turns off the "Include time" option for that property on a particular page).
When I change time.RFC3339 to "2006-01-02" locally, only the date part is sent, and only the date part is visible in the Notion UI.
Would it be possible to add an option to choose the date format that is sent to Notion? This would allow users to select whether they want to include the time or not. I don't have much experience with Go, so I'm wondering if it's possible to make this change in a backward-compatible manner. If it's not, then I can continue to use my forked version.
The text was updated successfully, but these errors were encountered:
- Add Date struct with DateOnly flag
- Implement custom date formatting for Notion API
- Add comprehensive test coverage
- Fix timezone formatting in FormatForNotion
- Handle null values in UnmarshalJSON
- Closesjomei#177
The
Date
type currently includes the time as part of the date:As a result, all Date properties filled using notionapi will have the time part visible in the Notion UI (until the user manually turns off the "Include time" option for that property on a particular page).
When I change
time.RFC3339
to"2006-01-02"
locally, only the date part is sent, and only the date part is visible in the Notion UI.Would it be possible to add an option to choose the date format that is sent to Notion? This would allow users to select whether they want to include the time or not. I don't have much experience with Go, so I'm wondering if it's possible to make this change in a backward-compatible manner. If it's not, then I can continue to use my forked version.
The text was updated successfully, but these errors were encountered: