[Lada-commits] [PATCH 05 of 10] Avoid detour via Date object
Wald Commits
scm-commit at wald.intevation.org
Thu Sep 29 16:54:46 CEST 2016
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1474964624 -7200
# Node ID f3331174b1aec40046950da0b132a04c29451e3c
# Parent cf5a2de206e38558b8a19a8f3a20eb854ed23077
Avoid detour via Date object.
diff -r cf5a2de206e3 -r f3331174b1ae src/main/java/de/intevation/lada/factory/ProbeFactory.java
--- 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>();
More information about the Lada-commits
mailing list