Mercurial > gemma
changeset 5044:ca5b1b5a553a time-sliding
client: date localization for time slider
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Fri, 28 Feb 2020 17:05:56 +0100 |
parents | bae2548dc484 |
children | a7cda81bf96f |
files | client/src/components/TimeSlider.vue |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/TimeSlider.vue Fri Feb 28 16:38:53 2020 +0100 +++ b/client/src/components/TimeSlider.vue Fri Feb 28 17:05:56 2020 +0100 @@ -52,6 +52,7 @@ import { mapState } from "vuex"; import * as d3 from "d3"; import app from "@/main"; +import { localeDateString } from "@/lib/datelocalization"; let zoom = null; export default { @@ -110,6 +111,7 @@ marginTop = 20, marginLeft = 0; + d3.timeFormatDefaultLocale(localeDateString); this.newX = this.getScale(); d3.select(".sliderContainer svg").remove(); let svg = d3