1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2025-06-17 00:07:45 +02:00

Add custom type for Notion date properties with optional time

This commit is contained in:
David Stotijn
2021-05-23 14:02:17 +02:00
parent 00a77fe3a4
commit 7e83ec7aec
4 changed files with 213 additions and 5 deletions

View File

@ -517,7 +517,7 @@ func TestQueryDatabase(t *testing.T) {
ID: "Q]uT",
Type: notion.DBPropTypeDate,
Date: &notion.Date{
Start: mustParseTime(time.RFC3339Nano, "2021-05-18T12:49:00.000-05:00"),
Start: mustParseDateTime("2021-05-18T12:49:00.000-05:00"),
},
},
"Name": notion.DatabasePageProperty{