# Patch for #54254

- Thread: https://externals.io/message/57334
- Original archive: https://news-web.php.net/php.internals/57334
- Started by Eitan Mosenkis on 2012-01-10T20:29:34+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #57334 — Eitan Mosenkis — 2012-01-10T20:29:34+00:00

URL: https://externals.io/message/57334#57334

This is a patch to fix the main issue in bug #54254,
cal_from_jd(CAL_JEWISH) returns month=6 for Adar when there is only
one Adar, (it should return 7, since if there is only one Adar it's
AdarII). This will clear up an issue where cal_from_jd() returns a
month that cal_days_in_month() reports to have 0 days due to an
inconsistency in how dates are converted to and from the Jewish
calendar. This patch should create the correct behavior.

I hope this can be applied and put into place soon, as this bug causes
malfunctions that have to be worked around.

Thanks,
Eitan

https://bugs.php.net/bug.php?id=54254
