Skip to content

Commit 3bf600d

Browse files
Merge pull request NotionX#472 from junogueira/fix/show-reminder-date-time
2 parents a12191d + c9a5705 commit 3bf600d

File tree

1 file changed

+6
-0
lines changed
  • packages/react-notion-x/src/components

1 file changed

+6
-0
lines changed

packages/react-notion-x/src/components/text.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,12 @@ export const Text: React.FC<{
191191
const startDate = v.start_date
192192

193193
return formatDate(startDate)
194+
} else if (type === 'datetime') {
195+
// Example: Jul 31, 2010 20:00
196+
const startDate = v.start_date
197+
const startTime = v.start_time
198+
199+
return `${formatDate(startDate)} ${startTime}`
194200
} else if (type === 'daterange') {
195201
// Example: Jul 31, 2010 → Jul 31, 2020
196202
const startDate = v.start_date

0 commit comments

Comments
 (0)