From eb77a10c380f3e3a608f79a2599f011ef27d4e9c Mon Sep 17 00:00:00 2001 From: Marwa <69919401+Korota-21@users.noreply.github.com> Date: Tue, 31 Jan 2023 05:48:37 +0300 Subject: [PATCH] Fix converting to Gregorian it's gives wrong date --- Hijri.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hijri.js b/Hijri.js index 795941e..5eed35a 100644 --- a/Hijri.js +++ b/Hijri.js @@ -124,7 +124,7 @@ var HijriJS = { if (year <= 0) { year--; }// No year zero - return new Date(year + "/" + (month+1) + "/" + day); + return new Date(year + "/" + month + "/" + day); }, HDate : function HDate(year, month, day) { this.year = year;