Skip to content
Snippets Groups Projects
Commit 41a6b555 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Bugfix: Using fallback start date for old/young crop model versions

parent 040f6948
Branches
Tags
No related merge requests found
......@@ -37,7 +37,7 @@ import no.nibio.vips.observation.Observation;
import no.nibio.vips.util.WeatherUtil;
/**
* @copyright 2016 <a href="http://www.nibio.no/">NIBIO</a>
* @copyright 2017 <a href="http://www.nibio.no/">NIBIO</a>
* @author Tor-Einar Skog <tor-einar.skog@nibio.no>
*/
public class DeliaRadicumFloralisModelPreprocessor extends ModelRunPreprocessor{
......@@ -72,7 +72,7 @@ public class DeliaRadicumFloralisModelPreprocessor extends ModelRunPreprocessor{
startDateGrowth = cal.getTime();
}
config.setConfigParameter("startDateGrowth", configuration.getForecastModelConfigurationValue(this.getModelId() + "_" + START_DATE_GROWTH));
config.setConfigParameter("startDateGrowth", format.format(startDateGrowth));
WeatherUtil wUtil = new WeatherUtil();
Date endDateCalculation = wUtil.normalizeToExactDate(SystemTime.getSystemTime(),timeZone);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment