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":