changeset 7928:5b3c795385ef

This guess was not always correct.
author "Tom Gottfried <tom@intevation.de>"
date Thu, 12 Jun 2014 12:26:05 +0200
parents 07cc4cd9233e
children 86f5a1577cc6
files artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/SedimentLoadCalculate.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/SedimentLoadCalculate.java	Thu Jun 12 12:21:55 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/SedimentLoadCalculate.java	Thu Jun 12 12:26:05 2014 +0200
@@ -32,7 +32,7 @@
 import org.dive4elements.river.artifacts.model.minfo.SedimentLoadUnknownFacet;
 import org.dive4elements.river.artifacts.resources.Resources;
 import org.dive4elements.river.artifacts.states.DefaultState;
-import org.dive4elements.river.utils.DateGuesser;
+import org.dive4elements.river.utils.DateUtil;
 
 /** State in which Sediment Load(s) are calculated/retrieved. */
 public class SedimentLoadCalculate
@@ -103,9 +103,9 @@
                         for (int[] date: dates) {
                             try {
                                 Date s =
-                                    DateGuesser.guessDate(String.valueOf(date[0]));
+                                    DateUtil.getStartDateFromYear(date[0]);
                                 Date e =
-                                    DateGuesser.guessDate(String.valueOf(date[1]));
+                                    DateUtil.getEndDateFromYear(date[0]);
                                 if (!(s.after(load.getEnd()) ||
                                       e.before(load.getStart()))) {
                                     return Boolean.TRUE;

http://dive4elements.wald.intevation.org