From 2b6b40b2b1afb7bbd8bdda0cbf86b8749602abd0 Mon Sep 17 00:00:00 2001 From: Francis Casibu Date: Sun, 12 Nov 2023 05:52:04 +0800 Subject: [PATCH] docs: Fix code sample for date formatting (#619 by @casibu) --- docs/pages/docs/usage/dates-times.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/docs/usage/dates-times.mdx b/docs/pages/docs/usage/dates-times.mdx index aa305aaf5..bae73797a 100644 --- a/docs/pages/docs/usage/dates-times.mdx +++ b/docs/pages/docs/usage/dates-times.mdx @@ -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: {