Skip to content

Commit

Permalink
INT: fixed day selection problem
Browse files Browse the repository at this point in the history
  • Loading branch information
kukjevov committed Oct 14, 2022
1 parent 2c647c6 commit ac1c2e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

## Version 4.0.0 (2022-10-13)
## Version 4.0.0 (2022-10-14)

### Bug Fixes

- updated `DateValueProvider` service, now correctly returns start of day for format with day

### Features

Expand Down
6 changes: 6 additions & 0 deletions src/services/dateValueProvider.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ export class DateValueProvider<TDate = any>
start = val.startOfHour().value;
end = val.endOfHour().value;
}
//day
else if(fullFormat.indexOf('d') >= 0)
{
start = val.startOfDay().value;
end = val.endOfDay().value;
}
//week
else if(fullFormat.indexOf('w') >= 0)
{
Expand Down

0 comments on commit ac1c2e8

Please sign in to comment.