Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
4471:294b1b6ea00f | 4472:4dad1d448876 |
---|---|
465 }, | 465 }, |
466 recency(feature) { | 466 recency(feature) { |
467 const revisitingFactor = this.config.bn_revtime_multiplier; | 467 const revisitingFactor = this.config.bn_revtime_multiplier; |
468 const revisitingTime = feature.get("revisiting_time"); | 468 const revisitingTime = feature.get("revisiting_time"); |
469 if (!revisitingTime) return [this.$gettext("No revisiting time defined")]; | 469 if (!revisitingTime) return [this.$gettext("No revisiting time defined")]; |
470 const latest = feature.get("date_max"); | 470 const latest = feature.get("date_max").replace("Z", ""); |
471 if (!latest) return [this.$gettext("No survey-data available")]; | 471 if (!latest) return [this.$gettext("No survey-data available")]; |
472 const latestMeasurement = filters.surveyDate(new Date(latest)); | 472 const latestMeasurement = filters.surveyDate(new Date(latest)); |
473 const messagesPerState = { | 473 const messagesPerState = { |
474 OK: [ | 474 OK: [ |
475 this.$gettext("Data within the revisiting time") + | 475 this.$gettext("Data within the revisiting time") + |