Bug #70687 [NEW]: Month List for 5775 Incorrect
| From: | daniel at ohr dot edu | Date: | Sat, 10 Oct 2015 20:13:04 +0000 |
| Subject: | Bug #70687 [NEW]: Month List for 5775 Incorrect | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-196515@lists.php.net to get a copy of this message | ||
From: daniel at ohr dot edu
Operating system: Mac OS X
PHP version: 5.6.14
Package: Calendar related
Bug Type: Bug
Bug description:Month List for 5775 Incorrect
Description:
------------
The script executes fine
the problem is that Elul IS NOT THE 13th Month in a non-Leap year
5775 is not a leap year
5776 is a leap year
I don't understand how Elul is the 13 month?
there are 12 months in a regular non-leap Jewish Year
In point of fact
to list the months in this order is both confusing and incorrect
the first month of the year in Jewish calendar is Nissan
the change of the year is in Tishri which makes Tishri the 7th Month and
Adar the 12th month or Adar II the 13th month - which is logical since
this month is added in a leap year!
Notice the output at 7? why is it repeated?
Test script:
---------------
for ($j = 1;$j<14;$j++) {
echo $j.'. '.(iconv ('WINDOWS-1255', 'UTF-8',
jdtojewish(jewishtojd($j,1,5775),true)));
echo '<br />';
}
if (is_leap(5775)) { echo 'true' ;}
echo (5775 % 19);
Expected result:
----------------
1. × ×ª×©×¨× ×תשע×
2. × ×ש×× ×תשע×
3. × ×ס×× ×תשע×
4. × ××ת ×תשע×
5. × ×©×× ×תשע×
6. × ××ר ×תשע×
7. × × ××¡× ×תשע×
8. × ×××ר ×תשע×
9. × ×¡××× ×תשע×
10. × ×ª××× ×תשע×
11. × ×× ×תשע×
12. × ×××× ×תשע×
Actual result:
--------------
. × ×ª×©×¨× ×תשע×
2. × ×ש×× ×תשע×
3. × ×ס×× ×תשע×
4. × ××ת ×תשע×
5. × ×©×× ×תשע×
6. × ××ר ×תשע×
7. × ××ר ×תשע×
8. × × ××¡× ×תשע×
9. × ×××ר ×תשע×
10. × ×¡××× ×תשע×
11. × ×ª××× ×תשע×
12. × ×× ×תשע×
13. × ×××× ×תשע×
--
Edit bug report at https://bugs.php.net/bug.php?id=70687&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70687&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70687&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70687&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70687&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70687&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70687&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70687&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70687&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70687&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70687&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70687&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70687&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70687&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70687&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70687&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70687&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70687&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70687&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70687&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70687&r=mysqlcfg