From fe7a09dd75682c61cc3360a0e2e6b2e859a1601c Mon Sep 17 00:00:00 2001 From: WK Wong Date: Sun, 4 Aug 2024 15:47:51 +0800 Subject: [PATCH 1/2] fix(utilities): gregorian year offset for persian --- packages/utilities/shared-utils/src/dates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": From 39be437983b7a865b650991ab36fe15953a805ac Mon Sep 17 00:00:00 2001 From: WK Wong Date: Sun, 4 Aug 2024 15:48:41 +0800 Subject: [PATCH 2/2] feat(changeset): add changeset --- .changeset/wild-apples-cheer.md | 5 +++++ 1 file changed, 5 insertions(+) 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)