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(-) (limited to 'src') 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