From fd231b4328d8447c80650ffb21cbfa5cbb15a301 Mon Sep 17 00:00:00 2001 From: Kevin Date: Tue, 18 Feb 2025 15:15:16 -0300 Subject: [PATCH] docs: Update typo of string formatting output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The actual output is: `28 février 22` This example demonstrates date wrap around the era notation, but doesn't note the era. An alternative example might demonstrate subtraction without passing past 0 CE, but for now let's just fix the typo. --- docs/strings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/strings.md b/docs/strings.md index 0be4a07d1..2d93095ce 100644 --- a/docs/strings.md +++ b/docs/strings.md @@ -67,7 +67,7 @@ zdt.withTimeZone('Europe/Paris') .toPlainDate() .subtract({ years: 3000 }) .toLocaleString('fr-FR', { calendar: 'gregory', dateStyle: 'long' }); - // => "28 février 2022" + // => "28 février 979" zdt.withTimeZone('America/New_York') .toPlainDate()