diff client/src/components/identify/Identify.vue @ 4472:4dad1d448876

replace 'Z' in max_date
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 24 Sep 2019 13:37:39 +0200
parents 0d597cda8c6b
children 80697ecc04e7
line wrap: on
line diff
--- a/client/src/components/identify/Identify.vue	Mon Sep 23 17:07:23 2019 +0200
+++ b/client/src/components/identify/Identify.vue	Tue Sep 24 13:37:39 2019 +0200
@@ -467,7 +467,7 @@
       const revisitingFactor = this.config.bn_revtime_multiplier;
       const revisitingTime = feature.get("revisiting_time");
       if (!revisitingTime) return [this.$gettext("No revisiting time defined")];
-      const latest = feature.get("date_max");
+      const latest = feature.get("date_max").replace("Z", "");
       if (!latest) return [this.$gettext("No survey-data available")];
       const latestMeasurement = filters.surveyDate(new Date(latest));
       const messagesPerState = {