changed date label format
This commit is contained in:
parent
c18d8daece
commit
22c7f5d85d
@ -979,11 +979,10 @@ export default {
|
|||||||
if (this.meal_plan_store !== null && this.meal_plan_store.plan_list.length > 0) {
|
if (this.meal_plan_store !== null && this.meal_plan_store.plan_list.length > 0) {
|
||||||
for (const x of Array(this.ui.meal_plan_days).keys()) {
|
for (const x of Array(this.ui.meal_plan_days).keys()) {
|
||||||
let moment_date = moment().add(x, "d")
|
let moment_date = moment().add(x, "d")
|
||||||
let date_label = moment_date.format("L").split("/")
|
|
||||||
grid.push({
|
grid.push({
|
||||||
date: moment_date,
|
date: moment_date,
|
||||||
create_default_date: moment_date.format("YYYY-MM-DD"), // improve meal plan edit modal to do formatting itself and accept dates
|
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") + " " + date_label[0] + "." + date_label[1],
|
date_label: moment_date.format("dd") + " " + moment_date.format("ll"),
|
||||||
plan_entries: this.meal_plan_store.plan_list.filter((m) => moment_date.isBetween(moment(m.from_date), moment(m.to_date), 'day', '[]'))
|
plan_entries: this.meal_plan_store.plan_list.filter((m) => moment_date.isBetween(moment(m.from_date), moment(m.to_date), 'day', '[]'))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user