Code Monkey home page Code Monkey logo

Comments (6)

xsoh avatar xsoh commented on July 16, 2024 1

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.

from moment-hijri.

muhshahabipour avatar muhshahabipour commented on July 16, 2024

so , i have this problem .
anybody else have a solution ?

from moment-hijri.

muhshahabipour avatar muhshahabipour commented on July 16, 2024

thanks for answer

i test now date but give wrong response

m = moment('1438/1/3', 'iYYYY/iM/iD');
m.format('iYYYY/iM/iD [is] YYYY/M/D');
"1355/12/NaN is 0000/1/1"

123

from moment-hijri.

muhshahabipour avatar muhshahabipour commented on July 16, 2024

i change code

line 587 - 590

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)

from moment-hijri.

shaharvaldman avatar shaharvaldman commented on July 16, 2024

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)

from moment-hijri.

lakshan28 avatar lakshan28 commented on July 16, 2024

same issue

from moment-hijri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.