Mercurial > gemma
changeset 4691:65a67b3492fd
client: formatter: unify date formatting
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Wed, 16 Oct 2019 15:31:09 +0200 |
parents | b263d9ae0057 |
children | c4adbebaf1a6 |
files | client/src/components/identify/formatter.js |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/identify/formatter.js Wed Oct 16 15:24:30 2019 +0200 +++ b/client/src/components/identify/formatter.js Wed Oct 16 15:31:09 2019 +0200 @@ -1,5 +1,6 @@ import Feature from "ol/Feature"; import app from "@/main"; +import filters from "@/lib/filters"; const formatter = { all(p) { @@ -13,7 +14,7 @@ p.key === "gm_measuredate") && p.val !== null ) { - p.val = new Date(p.val).toLocaleString(); + p.val = filters.dateTime(p.val); } // remove certain props