From 1c986aed0cefed59cd6be49436217d5f524ed218 Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Thu, 5 Oct 2023 17:12:59 +0200 Subject: fix on productIdNum in includedOpenTickt productIdNum in includedOpenTicket fixed --- .../java/org/uic/barcode/ticket/api/utils/DateTimeUtils.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/org/uic/barcode/ticket/api/utils/DateTimeUtils.java') diff --git a/src/main/java/org/uic/barcode/ticket/api/utils/DateTimeUtils.java b/src/main/java/org/uic/barcode/ticket/api/utils/DateTimeUtils.java index c8664a5..7fe5bca 100644 --- a/src/main/java/org/uic/barcode/ticket/api/utils/DateTimeUtils.java +++ b/src/main/java/org/uic/barcode/ticket/api/utils/DateTimeUtils.java @@ -37,7 +37,7 @@ public class DateTimeUtils { //long diff = localDate.getTime() - issuingDate.getTime(); //long dayDiff = TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS); - return new Long(diff); + return Long.valueOf(diff); } @@ -64,7 +64,7 @@ public class DateTimeUtils { long diff = localDate.getTime() - referenceDate.getTime(); long dayDiff = TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS); - return new Long(dayDiff); + return Long.valueOf(dayDiff); } @@ -110,7 +110,7 @@ public class DateTimeUtils { } int time = cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE); - return new Long (time ); + return Long.valueOf(time); } public static Long getTime (Date date) { @@ -120,7 +120,7 @@ public class DateTimeUtils { cal.setTime(date); int time = cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE); - return new Long (time ); + return Long.valueOf(time ); } public static Date getDate(Date issuingDate, Long date, Long time){ @@ -177,7 +177,7 @@ public class DateTimeUtils { */ int minuteOffset = - cal.getTimeZone().getRawOffset()/ ( 1000 * 60 * 15 ); - return new Long (minuteOffset); + return Long.valueOf(minuteOffset); } -- cgit v1.2.3