Notion Import "Set Date" Timezone Error #323
eleazar7
started this conversation in
Any-Block & Anytype-Heart
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I encountered a consistent issue where dates imported from Notion to Anytype are one day behind. After testing, I found the root cause: Notion exports date-only fields (e.g., “2025-08-09”) without time, which Anytype parses as 00:00 UTC. In my EDT (GMT-4:00) timezone, this shifts the date back by one day due to the negative offset.
Steps I Took:
Problem:
The offset occurs because Anytype interprets Notion’s naive date strings as UTC midnight, then adjusts to the local timezone (EDT), causing a one-day lag. This doesn’t happen in UTC or with a time set.
Suggested Fix:
Modify the Notion importer in anyproto/anytype-heart (e.g., pkg/import/notion/property.go) to parse date-only strings as local 00:00 instead of UTC, using time.ParseInLocation(layout, str, time.Local) in Go.
Alternatively, add an option during import to specify a default time (e.g., 12:00 p.m.) for date-only fields to avoid the shift.
to see more on this post - check out this post here:
https://community.anytype.io/t/notion-import-date-errors/26602/12
Beta Was this translation helpful? Give feedback.
All reactions