[PATCH 1 of 3] Fixed: bundu bzws start year plus one

Wald Commits scm-commit at wald.intevation.org
Mon Aug 13 17:28:12 CEST 2018


# HG changeset patch
# User mschaefer
# Date 1534173305 -7200
# Node ID 6ebc9357550cd6fe0ccffddfda754f7ee6e9a424
# Parent  0255c51283a4c6c748078c2f868bb29a7a85ca2d
Fixed: bundu bzws start year plus one

diff -r 0255c51283a4 -r 6ebc9357550c artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BunduAccess.java
--- 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() {
diff -r 0255c51283a4 -r 6ebc9357550c artifacts/src/main/java/org/dive4elements/river/artifacts/services/DynamicMainValuesService.java
--- 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);


More information about the Dive4Elements-commits mailing list