fingerpich / jalali-moment

Display, parse, manipulate, validate and convert jalali (Persian, Khorshidi, Shamsi) or Gregorian (Miladi) dates and times.
https://fingerpich.github.io/jalali-moment/
MIT License
436 stars 68 forks source link

jMoment fail when run with moment.ISO8601 format #70

Closed pouyamn closed 4 years ago

pouyamn commented 5 years ago

Describe the bug it raises an error when called like: moment.utc(value, moment.ISO_8601, true);

Expected behavior Create a jMoment object!

Additional context I got rid of the error by some stupid workaround, but it should be implemented

 function makeMoment(input, format, lang, strict, utc) {
        // if called with formats like moment.ISO8601
        if (typeof format === "function" || format === moment0.ISO_8601) format = "";
//...
fingerpich commented 4 years ago

Thanks. its fixed in 3.3.5.