From e5598adc39b1b8860bfac549626a56f0ad217465 Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Tue, 5 Jan 2021 10:12:29 +0100 Subject: UTC offset of valid from / until dates in Pass --- src/org/uic/ticket/api/utils/OpenAsn2ApiDecoder.java | 3 +++ src/org/uic/ticket/api/utils/OpenAsn2ApiDecoderV2.java | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/org/uic/ticket/api/utils') diff --git a/src/org/uic/ticket/api/utils/OpenAsn2ApiDecoder.java b/src/org/uic/ticket/api/utils/OpenAsn2ApiDecoder.java index 61dfe6b..82fda3e 100644 --- a/src/org/uic/ticket/api/utils/OpenAsn2ApiDecoder.java +++ b/src/org/uic/ticket/api/utils/OpenAsn2ApiDecoder.java @@ -1622,7 +1622,10 @@ public class OpenAsn2ApiDecoder { } document.setValidFrom(asnDocument.getValidFromDate(issuingDate)); + document.setValidFromUTCoffset(asnDocument.getValidFromUTCOffset()); + document.setValidUntil(asnDocument.getValidUntilDate(issuingDate)); + document.setValidUntilUTCoffset(asnDocument.getValidUntilUTCOffset()); if (asnDocument.getActivatedDay()!=null && !asnDocument.getActivatedDay().isEmpty()) { if (document.getValidFrom() != null) { diff --git a/src/org/uic/ticket/api/utils/OpenAsn2ApiDecoderV2.java b/src/org/uic/ticket/api/utils/OpenAsn2ApiDecoderV2.java index 2ffdb7b..60b3ca1 100644 --- a/src/org/uic/ticket/api/utils/OpenAsn2ApiDecoderV2.java +++ b/src/org/uic/ticket/api/utils/OpenAsn2ApiDecoderV2.java @@ -1650,7 +1650,10 @@ public class OpenAsn2ApiDecoderV2 { } document.setValidFrom(asnDocument.getValidFromDate(issuingDate)); + document.setValidFromUTCoffset(asnDocument.getValidFromUTCOffset()); + document.setValidUntil(asnDocument.getValidUntilDate(issuingDate)); + document.setValidUntilUTCoffset(asnDocument.getValidUntilUTCOffset()); if (asnDocument.getActivatedDay()!=null && !asnDocument.getActivatedDay().isEmpty()) { if (document.getValidFrom() != null) { -- cgit v1.2.3