Why it doesn't support dates before 1356(1937)?
unknown-exception opened this issue · 7 comments
unknown-exception commented
m = moment('1355/8/28', 'iYYYY/iM/iD'); // Parse a Hijri date.
m.format('iYYYY/iM/iD [is] YYYY/M/D'); // 1410/8/28 is 1990/3/25
"1355/12/NaN is 1001/3/1"
muhshahabipour commented
so , i have this problem .
anybody else have a solution ?
xsoh commented
the Ummulqura algorithm doesn't includes the days before 1355AH. AFAK that if you are targeting days before 1355 is to use the Kuwaiti hijri calculation algorithm.
muhshahabipour commented
muhshahabipour commented
i change code
to
input = config._i + '-' + leftZeroFill(date[0], 4) + '-' +
leftZeroFill(date[1] + 1, 2) + '-' +
leftZeroFill(date[2], 2)
worked me.
maybay other function are damaged (not test)
shaharvaldman commented
hi, first thanks for the library. It is great :) Is there a way to use the Kuwaiti hijri calculation algorithm as part of this library? (I am looking for support for earlier dates)
lakshan28 commented
same issue