From 45e041a5db7088a65b315059cf9efb95bac14d5e Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Mon, 29 Jun 2020 13:16:39 +0200 Subject: bug fix calculation of time --- src/org/uic/ticket/api/asn/omv1/DelayConfirmation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/uic/ticket/api/asn/omv1/DelayConfirmation.java b/src/org/uic/ticket/api/asn/omv1/DelayConfirmation.java index 1d9e2d2..91a0ce5 100644 --- a/src/org/uic/ticket/api/asn/omv1/DelayConfirmation.java +++ b/src/org/uic/ticket/api/asn/omv1/DelayConfirmation.java @@ -279,7 +279,7 @@ public class DelayConfirmation extends Object { this.plannedArrivalYear = new Long( cal.get(Calendar.YEAR)); this.plannedArrivalDay = new Long (cal.get(Calendar.DAY_OF_YEAR)); - int time = cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(cal.get(Calendar.MINUTE)); + int time = cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE); if (time > 0) { this.plannedArrivalTime = new Long (time ); } -- cgit v1.2.3