From f36df4362f572e8e233d4357f43600265cd5b8d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D5=A1=D3=84=D5=A1?= Date: Sun, 1 Sep 2024 09:40:07 +0800 Subject: [PATCH] fix(utilities): gregorian year offset for persian (#3603) * fix(utilities): gregorian year offset for persian * feat(changeset): add changeset --- .changeset/wild-apples-cheer.md | 5 +++++ packages/utilities/shared-utils/src/dates.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/wild-apples-cheer.md diff --git a/.changeset/wild-apples-cheer.md b/.changeset/wild-apples-cheer.md new file mode 100644 index 0000000000..cbcbb18ba6 --- /dev/null +++ b/.changeset/wild-apples-cheer.md @@ -0,0 +1,5 @@ +--- +"@nextui-org/shared-utils": patch +--- + +fixed gregorian year offset for persian (#3602) diff --git a/packages/utilities/shared-utils/src/dates.ts b/packages/utilities/shared-utils/src/dates.ts index dd3fe2928e..561c61c768 100644 --- a/packages/utilities/shared-utils/src/dates.ts +++ b/packages/utilities/shared-utils/src/dates.ts @@ -16,7 +16,7 @@ export function getGregorianYearOffset(identifier: string): number { case "islamic-umalqura": return -579; case "persian": - return 622; + return -600; case "roc": case "japanese": case "gregory":