@acorex/core 20.8.11 → 20.8.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -778,14 +778,20 @@ class AXSolarHijriCalendar extends AXCalendar {
|
|
|
778
778
|
default:
|
|
779
779
|
case 'day': {
|
|
780
780
|
const gDate = this.toGregorian(jDate.year, jDate.month, value);
|
|
781
|
+
clone.setFullYear(gDate.getFullYear());
|
|
782
|
+
clone.setMonth(gDate.getMonth());
|
|
781
783
|
clone.setDate(gDate.getDate());
|
|
782
784
|
break;
|
|
783
785
|
}
|
|
784
786
|
case 'week':
|
|
785
787
|
break;
|
|
786
788
|
case 'month': {
|
|
787
|
-
const
|
|
789
|
+
const lastDay = this.SolarHijriMonthLength(jDate.year, value);
|
|
790
|
+
const day = Math.min(jDate.day, lastDay);
|
|
791
|
+
const gDate2 = this.toGregorian(jDate.year, value, day);
|
|
792
|
+
clone.setFullYear(gDate2.getFullYear());
|
|
788
793
|
clone.setMonth(gDate2.getMonth());
|
|
794
|
+
clone.setDate(gDate2.getDate());
|
|
789
795
|
break;
|
|
790
796
|
}
|
|
791
797
|
case 'year': {
|