We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a12191d + c9a5705 commit 3bf600dCopy full SHA for 3bf600d
packages/react-notion-x/src/components/text.tsx
@@ -191,6 +191,12 @@ export const Text: React.FC<{
191
const startDate = v.start_date
192
193
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}`
200
} else if (type === 'daterange') {
201
// Example: Jul 31, 2010 → Jul 31, 2020
202
0 commit comments