php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54254
Patch Use-AdarII-for-non-leap-years-and-test revision 2012-01-10 20:23 UTC by eitan at mosenkis dot net
Patch Use-AdarII-for-non-leap-years revision 2012-01-10 20:06 UTC by eitan at mosenkis dot net

Patch Use-AdarII-for-non-leap-years for Calendar related Bug #54254

Patch version 2012-01-10 20:06 UTC

Return to Bug #54254 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: eitan@mosenkis.net

Index: ext/calendar/jewish.c
===================================================================
--- ext/calendar/jewish.c	(revision 322030)
+++ ext/calendar/jewish.c	(working copy)
@@ -587,11 +587,11 @@
 				(*pMonth)--;
 				(*pDay) += 30;
 			} else {
-				*pMonth = 6;
+				*pMonth = 7;
 				*pDay = inputDay - tishri1 + 207;
 				if (*pDay > 0)
 					return;
-				(*pMonth)--;
+				(*pMonth)-=2;
 				(*pDay) += 30;
 			}
 			if (*pDay > 0)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 09:01:28 2024 UTC