Mercurial > gemma
changeset 5052:89cd8937cc4b time-sliding
toolbar: fix display of time
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 02 Mar 2020 14:58:47 +0100 |
parents | 72bf187cefc9 |
children | 8b39081fa3aa |
files | client/src/components/toolbar/TimeSlider.vue |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/toolbar/TimeSlider.vue Mon Mar 02 14:40:50 2020 +0100 +++ b/client/src/components/toolbar/TimeSlider.vue Mon Mar 02 14:58:47 2020 +0100 @@ -38,11 +38,12 @@ computed: { ...mapState("application", ["showTimeSlider", "selectedTime"]), label() { + const date = this.selectedTime; return `<b>${this.selectedTime.toLocaleDateString(locale2, { day: "2-digit", month: "2-digit", year: "numeric" - })} ${format(this.selectedTime, "HH:MM")}</b>`; + })} ${format(date, "HH:mm")}</b>`; }, currentTimeSelection() { const date = this.selectedTime; @@ -50,7 +51,7 @@ day: "2-digit", month: "2-digit" }); - return `${format(date, "HH:MM")}\n${result}\n${date.getFullYear()}`; + return `${format(date, "HH:mm")}\n${result}\n${date.getFullYear()}`; } } };