date format in meal plan simple grid

This commit is contained in:
vabene1111 2023-09-13 16:17:02 +02:00
parent 22c7f5d85d
commit d7fadffbfd

View File

@ -371,7 +371,7 @@ export default {
grid.push({
date: moment_date,
create_default_date: moment_date.format("YYYY-MM-DD"), // improve meal plan edit modal to do formatting itself and accept dates
date_label: moment_date.format('ddd DD.MM'),
date_label: moment_date.format("dd") + " " + moment_date.format("ll"),
plan_entries: this.plan_items.filter((m) => moment_date.isBetween(moment(m.startDate), moment(m.endDate), 'day', '[]'))
})
}