Skip to content

Commit

Permalink
fix range start bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tiampersian committed Dec 21, 2023
1 parent 6d47592 commit 6d3a8a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion projects/tiampersian/kendo-jalali-date-inputs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tiampersian/kendo-jalali-date-inputs",
"version": "0.1.339",
"version": "0.1.340",
"license": "MIT",
"description": "angular jalali ( persian ) date time picker base on kendo-angular-dateinputs ",
"homepage": "https://github.com/tiampersian/kendo-jalali-date-inputs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ export class JalaliMonthViewService extends MonthViewService {

isRangeStart(value) {
if (!value) { return false; }
if (this.intl.isJalali) {
return this.intl.getDayJsValue(value).month() === 4;
}
return value.getMonth() === 0;

return this.intl.getDayJsValue(value).month() === 1;
}

title(current) {
Expand Down

0 comments on commit 6d3a8a4

Please sign in to comment.