Mercurial > gemma
diff client/src/components/map/contextbox/Bottlenecks.vue @ 1520:6ad1f431bc85
Fixed date of latest measurement in bottlenecks list.
As the time zone conversion done by geoserver leads to unexpected
results for date fields if the local timezone differs from UTC, I
replaced the date column in the bottleneck_overview view with text.
As the transport format used (JSON) does handle dates as strings
anyway we do not loose any information by doing so...
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Thu, 06 Dec 2018 15:37:06 +0100 |
parents | 6b3756676bbe |
children | 276df8dadc14 |
line wrap: on
line diff
--- a/client/src/components/map/contextbox/Bottlenecks.vue Thu Dec 06 14:34:03 2018 +0100 +++ b/client/src/components/map/contextbox/Bottlenecks.vue Thu Dec 06 15:37:06 2018 +0100 @@ -276,7 +276,7 @@ } }, displayCurrentSurvey(current) { - return current ? current.substr(0, current.length - 1) : ""; + return current ? current : ""; }, displayCurrentChainage(from, to) { return from / 10 + " - " + to / 10;