changeset 9396:6ebc9357550c

Fixed: bundu bzws start year plus one
author mschaefer
date Mon, 13 Aug 2018 17:15:05 +0200
parents 0255c51283a4
children 6e7094368e97
files artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BunduAccess.java artifacts/src/main/java/org/dive4elements/river/artifacts/services/DynamicMainValuesService.java
diffstat 2 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BunduAccess.java	Mon Aug 13 09:16:44 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BunduAccess.java	Mon Aug 13 17:15:05 2018 +0200
@@ -48,8 +48,7 @@
     }
 
     public int getStartYear() {
-        return this.getBezugsJahr() - this.getQSeriesLength();
-
+        return this.getBezugsJahr() - this.getQSeriesLength() + 1;
     }
 
     public Integer getUd() {
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/services/DynamicMainValuesService.java	Mon Aug 13 09:16:44 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/services/DynamicMainValuesService.java	Mon Aug 13 17:15:05 2018 +0200
@@ -84,8 +84,6 @@
 
         try {
             final int year = Integer.parseInt(startStr);
-
-            // FIXME: timezone? probably must match timezone of database
             final Calendar cal = Calendar.getInstance();
             cal.clear();
             cal.set(year, 0, 1);
@@ -106,8 +104,6 @@
 
         try {
             final int year = Integer.parseInt(endStr);
-
-            // FIXME: timezone? probably must match timezone of database
             final Calendar cal = Calendar.getInstance();
             cal.clear();
             cal.set(year, 11, 31);

http://dive4elements.wald.intevation.org