The getMonth method is currently working with the Jalali month, while the setMonth method operates with the Gregorian month. This inconsistency leads to a failure in the following simple test:
The getDate method has been overridden to work with jDate:
public getMonth = (date: Moment) => {
return date.jMonth();
};
However, the setDate method has not been adjusted to match this behavior. This inconsistency needs to be addressed to ensure the correct functioning of the library.
The
getMonth
method is currently working with the Jalali month, while thesetMonth
method operates with the Gregorian month. This inconsistency leads to a failure in the following simple test:The
getDate
method has been overridden to work withjDate
:However, the
setDate
method has not been adjusted to match this behavior. This inconsistency needs to be addressed to ensure the correct functioning of the library.