Skip to content

Commit c9a5705

Browse files
committed
fix: show reminder date and time
1 parent 6493adc commit c9a5705

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)