From a074664bd65c9c6b383b50ee44eaae4586b17bca Mon Sep 17 00:00:00 2001 From: Alex Stasewitsch Date: Wed, 26 Apr 2023 10:08:11 +0200 Subject: +1 for in encoding of month; --- src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java b/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java index 31a664b..d4127fb 100644 --- a/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java +++ b/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java @@ -255,7 +255,7 @@ public class UHEADDataRecord extends DataRecord{ String timeElement = String.format("%02d%02d%04d%02d%02d", now.get(Calendar.DAY_OF_MONTH), - now.get(Calendar.MONTH), + now.get(Calendar.MONTH) - 1, now.get(Calendar.YEAR), now.get(Calendar.HOUR), now.get(Calendar.MINUTE)); -- cgit v1.2.3 From 534f448e28515e3af58bd19c171b83d139567275 Mon Sep 17 00:00:00 2001 From: Alex Stasewitsch Date: Wed, 26 Apr 2023 14:13:09 +0200 Subject: -1 -> +1; --- src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java b/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java index d4127fb..30777a5 100644 --- a/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java +++ b/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java @@ -255,7 +255,7 @@ public class UHEADDataRecord extends DataRecord{ String timeElement = String.format("%02d%02d%04d%02d%02d", now.get(Calendar.DAY_OF_MONTH), - now.get(Calendar.MONTH) - 1, + now.get(Calendar.MONTH) + 1, now.get(Calendar.YEAR), now.get(Calendar.HOUR), now.get(Calendar.MINUTE)); -- cgit v1.2.3