fix: The date picker now outputs start of day
This commit is contained in:
@@ -31,7 +31,7 @@ export class MenuAddComponent {
|
|||||||
submit() {
|
submit() {
|
||||||
switch (this.type) {
|
switch (this.type) {
|
||||||
case "day":
|
case "day":
|
||||||
this.dialogRef.close({type: "day", value: this.day.utc()})
|
this.dialogRef.close({type: "day", value: this.day.utc().startOf('day')})
|
||||||
break;
|
break;
|
||||||
case "week":
|
case "week":
|
||||||
this.dialogRef.close({type: "week", value: {start: this.range.value.start?.utc().hours(24), count: 5}})
|
this.dialogRef.close({type: "week", value: {start: this.range.value.start?.utc().hours(24), count: 5}})
|
||||||
|
|||||||
Reference in New Issue
Block a user