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
434 stars 69 forks source link

Force to supporting jalali calender #38

Closed m-farahmand closed 6 years ago

m-farahmand commented 6 years ago

I use this module to localizing mat-datepicker and in some cases it call functions without argument ( e.g. year() return Gregorian year ).

I want to know why year, month and ... functions return Gregorian instead of jalali when they call without argument.
Thank you for your effort

fingerpich commented 6 years ago

It's fixed in jalali-moment@3.1.2