From 7ea9fb29fad17c4893607763cfe22e5a289e9fdd Mon Sep 17 00:00:00 2001 From: Haiko Date: Sat, 28 Apr 2018 22:49:03 +0200 Subject: [PATCH] fix bug timezone --- .../java/nl/cyberworkz/roboflightmonitor/domain/Flight.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/nl/cyberworkz/roboflightmonitor/domain/Flight.java b/src/main/java/nl/cyberworkz/roboflightmonitor/domain/Flight.java index 0328091..8cf5436 100644 --- a/src/main/java/nl/cyberworkz/roboflightmonitor/domain/Flight.java +++ b/src/main/java/nl/cyberworkz/roboflightmonitor/domain/Flight.java @@ -119,7 +119,7 @@ public void deriveLandingTime() { DateTimeZone dtz = DateTimeZone.forTimeZone(tz); DateTime dt = new DateTime(this.scheduleDate); dt.withZone(dtz); - dt.plus(new Period(this.scheduleTime.getHourOfDay(), this.scheduleTime.getMinuteOfHour(), + dt = dt.plus(new Period(this.scheduleTime.getHourOfDay(), this.scheduleTime.getMinuteOfHour(), this.scheduleTime.getSecondOfMinute(), this.scheduleTime.getMillisOfSecond())); this.scheduleDateTime = dt;