changeset 9359:df6f1b5806f6

Two minor importer changes
author mschaefer
date Wed, 01 Aug 2018 13:21:34 +0200
parents 8eddc2393750
children ddcd52d239cd
files backend/src/main/java/org/dive4elements/river/importer/uinfo/parsers/VegetationParser.java backend/src/main/java/org/dive4elements/river/model/TimeInterval.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/uinfo/parsers/VegetationParser.java	Wed Aug 01 13:20:38 2018 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/uinfo/parsers/VegetationParser.java	Wed Aug 01 13:21:34 2018 +0200
@@ -159,7 +159,7 @@
 
     @Override
     protected VegetationZoneImport createKmLineImport(final Double km, final String[] values) {
-        int daysLimit = 367;
+        int daysLimit = 365;
         int classNo = 0;
         try {
             if (!values[this.cols.get(ColTitlePattern.OVERFLOW_LIMIT)].trim().isEmpty())
--- a/backend/src/main/java/org/dive4elements/river/model/TimeInterval.java	Wed Aug 01 13:20:38 2018 +0200
+++ b/backend/src/main/java/org/dive4elements/river/model/TimeInterval.java	Wed Aug 01 13:21:34 2018 +0200
@@ -33,7 +33,7 @@
     static {
         YEAR_ONLY_DATE = Calendar.getInstance();
         YEAR_ONLY_DATE.clear();
-        YEAR_ONLY_DATE.set(0, Calendar.DECEMBER, 31, 3, 5, 6);
+        YEAR_ONLY_DATE.set(0, Calendar.DECEMBER, 31, 3, 6, 5);
     }
 
     private Integer id;

http://dive4elements.wald.intevation.org