Skip to content

Commit

Permalink
docs: Fix code sample for date formatting (#619 by @Casibu)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcasibu authored Nov 11, 2023
1 parent 951413b commit 2b6b40b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/docs/usage/dates-times.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ To use custom formats in messages, you can provide formatters based on [`DateTim

```js
t(
'orderDate',
{date: new Date('2020-11-20T10:36:01.516Z')},
'ordered',
{orderDate: new Date('2020-11-20T10:36:01.516Z')},
{
dateTime: {
short: {
Expand Down

2 comments on commit 2b6b40b

@vercel
Copy link

@vercel vercel bot commented on 2b6b40b Nov 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

next-intl-example-next-13 – ./examples/example-next-13

next-intl-example-next-13-git-main-next-intl.vercel.app
next-intl-example-next-13.vercel.app
next-intl-example-next-13-next-intl.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 2b6b40b Nov 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

next-intl-docs – ./docs

next-intl-docs.vercel.app
next-intl-docs-git-main-next-intl.vercel.app
next-intl-docs-next-intl.vercel.app

Please sign in to comment.