From d2b8fe4ba26597ec5074ab84f575e5e43dcdfdb0 Mon Sep 17 00:00:00 2001 From: Gian-Andrea Hutter Date: Tue, 22 Nov 2022 14:48:09 +0100 Subject: [PATCH] #23 small adjustments --- .../zhaw/gartenverwaltung/io/WeatherGradenTaskPlanner.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ch/zhaw/gartenverwaltung/io/WeatherGradenTaskPlanner.java b/src/main/java/ch/zhaw/gartenverwaltung/io/WeatherGradenTaskPlanner.java index ec8dd48..ead783f 100644 --- a/src/main/java/ch/zhaw/gartenverwaltung/io/WeatherGradenTaskPlanner.java +++ b/src/main/java/ch/zhaw/gartenverwaltung/io/WeatherGradenTaskPlanner.java @@ -32,7 +32,7 @@ public class WeatherGradenTaskPlanner { Task preHailTask = new Task("Hail", "During a summer Thunderstorm it could hail heavily. THe Hail could damage the crops. To prevent damage cover the plants with a strong tarpaulin", - dateSevereWeather); + dateSevereWeather.minusDays(1L)); preHailTask.withId(Long.MAX_VALUE); taskList.saveTask(preHailTask); @@ -41,7 +41,7 @@ public class WeatherGradenTaskPlanner { public void createPreFrost() throws IOException { Task preFrostTask = new Task("Frost", "The temperatur falls below zero degrees, cover especially the root with wool", - dateSevereWeather); + dateSevereWeather.minusDays(1L)); preFrostTask.withId(Long.MAX_VALUE); taskList.saveTask(preFrostTask); } @@ -49,7 +49,7 @@ public class WeatherGradenTaskPlanner { public void createPreSnow() throws IOException { Task preSnowTask = new Task("Snow", "The weather brings little snowfall. Cover your crops", - dateSevereWeather); + dateSevereWeather.minusDays(1L)); preSnowTask.withId(Long.MAX_VALUE); taskList.saveTask(preSnowTask); }