Skip to content

Commit

Permalink
External parameter mapping update, to extract only date part for the …
Browse files Browse the repository at this point in the history
…iap and exp parameters (eu-digital-green-certificates#62)
  • Loading branch information
oleksandrsarapulovgl authored Oct 29, 2021
1 parent 06d4aa8 commit d867278
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

package dgca.verifier.app.engine.data

import dgca.verifier.app.engine.UTC_ZONE_ID
import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter

Expand Down Expand Up @@ -69,8 +70,8 @@ class ExternalParameter private constructor(
validationClock = DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(validationClock),
valueSets = valueSets,
countryCode = countryCode,
exp = exp.toString(),
iat = iat.toString(),
exp = exp.withZoneSameInstant(UTC_ZONE_ID).toLocalDate().toString(),
iat = iat.withZoneSameInstant(UTC_ZONE_ID).toLocalDate().toString(),
issuerCountryCode = issuerCountryCode,
kid = kid,
region = region
Expand Down

0 comments on commit d867278

Please sign in to comment.