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

fixes problem with calling jMoment.utc without locale #67

Closed pouyamn closed 5 years ago

pouyamn commented 5 years ago

fixes issue #66

Another solution is to change moment.utc as fallow:

jMoment.utc = function (input, format, lang, strict) {
    if (typeof lang === "boolean") {
        strict = lang;
        lang = undefined;
    }
    return makeMoment(input, format, lang, strict, true);
};

but I think the provided solution is more general.

fingerpich commented 5 years ago

thanks, its available in version 3.3.3