diff --git a/changelog.md b/changelog.md index 906ba0b..5959083 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/src/services/dateValueProvider.service.ts b/src/services/dateValueProvider.service.ts index 7a144d1..5291fc9 100644 --- a/src/services/dateValueProvider.service.ts +++ b/src/services/dateValueProvider.service.ts @@ -41,6 +41,12 @@ export class DateValueProvider 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) {