changeset 1061:f3331174b1ae

Avoid detour via Date object.
author Tom Gottfried <tom@intevation.de>
date Tue, 27 Sep 2016 10:23:44 +0200
parents cf5a2de206e3
children 0fbcaefc565b
files src/main/java/de/intevation/lada/factory/ProbeFactory.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/factory/ProbeFactory.java	Fri Sep 23 20:13:45 2016 +0200
+++ b/src/main/java/de/intevation/lada/factory/ProbeFactory.java	Tue Sep 27 10:23:44 2016 +0200
@@ -77,9 +77,9 @@
         }
         Messprogramm messprogramm = messprogramme.get(0);
         Calendar start = Calendar.getInstance();
-        start.setTime(new Date(from));
+        start.setTimeInMillis(from);
         Calendar end = Calendar.getInstance();
-        end.setTime(new Date (to));
+        end.setTimeInMillis(to);
         List<LProbe> proben = new ArrayList<LProbe>();
 
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)