fix: The date picker now outputs start of day

This commit is contained in:
2025-05-20 21:22:49 +02:00
parent 26dac21e7e
commit 92768ceda6

View File

@@ -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}})