diff gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java @ 816:cda3bede32f8

ISSUE215 Switched Values between columns yyyy-mm-dd hh:mm and time_ISO8601 gnv-artifacts/trunk@901 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 12 Apr 2010 09:26:26 +0000
parents 41a7c49b5cb4
children 499cfbbb61bc
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java	Mon Apr 12 06:59:33 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java	Mon Apr 12 09:26:26 2010 +0000
@@ -633,9 +633,9 @@
         if (data != null){
             Object describeData = data.getObject();
             if (describeData instanceof MinMaxDescribeData){
-                return (((MinMaxDescribeData)describeData).
-                        getMinValue()+".0").
-                        replace(' ','T');
+                String value = ((MinMaxDescribeData)describeData)
+                                .getMinValue().toString();
+                return value.substring(0,value.lastIndexOf(':'));
             }
             return null;
         }else{

http://dive4elements.wald.intevation.org