Skip to content

Commit

Permalink
Update src/pages/[platform]/ai/conversation/ai-conversation/index.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Saultz <[email protected]>
  • Loading branch information
dbanksdesign and atierian authored Nov 21, 2024
1 parent 1a3cf4c commit 598f02c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ The welcome message will disappear once a message has been sent.

All messages have a timestamp associated with them that are displayed next to the username. To customize how the timestamp displays you can pass a custom text formatter function called `getMessageTimestampText` into the `displayText` property on the `<AIConversation>` component. This function will receive a `Date` object as its argument and should return a string.

The web has a really nice built-in date/time formatter you can use called [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat).
Browsers have a really nice built-in date/time formatter you can use called [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat).

<UIWrapper>
<AIConversation
Expand Down

0 comments on commit 598f02c

Please sign in to comment.