Skip to content

Commit

Permalink
fix(utilities): gregorian year offset for persian (#3603)
Browse files Browse the repository at this point in the history
* fix(utilities): gregorian year offset for persian

* feat(changeset): add changeset
  • Loading branch information
wingkwong authored Sep 1, 2024
1 parent 3e06ef6 commit f36df43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wild-apples-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/shared-utils": patch
---

fixed gregorian year offset for persian (#3602)
2 changes: 1 addition & 1 deletion packages/utilities/shared-utils/src/dates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit f36df43

Please sign in to comment.