Mercurial > gemma
changeset 3635:6d6577a87963
Do not show missing date as Unix epoch
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 11 Jun 2019 20:28:38 +0200 |
parents | 3012d0b3badc |
children | 89a39783c20a |
files | client/src/components/identify/formatter.js |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/identify/formatter.js Wed Jun 05 18:50:54 2019 +0200 +++ b/client/src/components/identify/formatter.js Tue Jun 11 20:28:38 2019 +0200 @@ -5,9 +5,10 @@ if (p.key === "staging_done" || p.key === "fa_critical") p.val = p.val ? "yes" : "no"; if ( - p.key === "date_info" || - p.key === "fa_date_info" || - p.key === "gm_measuredate" + (p.key === "date_info" || + p.key === "fa_date_info" || + p.key === "gm_measuredate") && + p.val !== null ) { p.val = new Date(p.val).toLocaleString(); }