diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2023-08-11 10:43:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-11 10:43:36 +0200 |
commit | 91c78a9c0dbb20ce141a0122267b4f6d367646ec (patch) | |
tree | 960657a9b89eee67f09cc4e23675996f7f902440 /src/main/java/org/uic/barcode/ticket/api/asn/omv3/PassData.java | |
parent | Merge pull request #70 from UnionInternationalCheminsdeFer/1.4.3 (diff) | |
parent | version number update (diff) | |
download | UIC-barcode-91c78a9c0dbb20ce141a0122267b4f6d367646ec.tar UIC-barcode-91c78a9c0dbb20ce141a0122267b4f6d367646ec.tar.gz UIC-barcode-91c78a9c0dbb20ce141a0122267b4f6d367646ec.tar.bz2 UIC-barcode-91c78a9c0dbb20ce141a0122267b4f6d367646ec.tar.lz UIC-barcode-91c78a9c0dbb20ce141a0122267b4f6d367646ec.tar.xz UIC-barcode-91c78a9c0dbb20ce141a0122267b4f6d367646ec.tar.zst UIC-barcode-91c78a9c0dbb20ce141a0122267b4f6d367646ec.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main/java/org/uic/barcode/ticket/api/asn/omv3/PassData.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv3/PassData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv3/PassData.java index d84f868..9ef1acb 100644 --- a/src/main/java/org/uic/barcode/ticket/api/asn/omv3/PassData.java +++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv3/PassData.java @@ -511,11 +511,14 @@ public class PassData extends Object { this.validFromDay = 0L;
}
+ if (this.validUntilTime == null) {
+ this.validUntilTime = 1439L;
+ }
+
if (this.validUntilDay == null) {
return null;
}
-
return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);
}
|