[PATCH] issue1386: Fix date parameter for official epochs query

Wald Commits scm-commit at wald.intevation.org
Mon Jul 8 13:57:47 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1373285204 -7200
# Node ID a4f60641e445b888119dfbf22124d443cdec5def
# Parent  b24dc0320b750f068fb0007d103924769ff3ce25
issue1386: Fix date parameter for official epochs query.

diff -r b24dc0320b75 -r a4f60641e445 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFactory.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFactory.java	Mon Jul 08 11:41:10 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFactory.java	Mon Jul 08 14:06:44 2013 +0200
@@ -364,7 +364,7 @@
             Calendar toStart = Calendar.getInstance();
             toStart.set(eyear - 1, 11, 31);
             Calendar toEnd = Calendar.getInstance();
-            toEnd.set(eyear, 11, 30);
+            toEnd.set(eyear+1, 11, 31);
             sqlQuery = session.createSQLQuery(SQL_SELECT_EPOCHS_DATA)
                 .addScalar("description", StandardBasicTypes.STRING)
                 .addScalar("startYear", StandardBasicTypes.DATE)


More information about the Dive4elements-commits mailing list