diff --git a/apps/user-ms/src/test/java/it/pagopa/selfcare/user/conf/DateCodecTest.java b/apps/user-ms/src/test/java/it/pagopa/selfcare/user/conf/DateCodecTest.java index 25dbe9a6..41002d9a 100644 --- a/apps/user-ms/src/test/java/it/pagopa/selfcare/user/conf/DateCodecTest.java +++ b/apps/user-ms/src/test/java/it/pagopa/selfcare/user/conf/DateCodecTest.java @@ -23,7 +23,7 @@ class DateCodecTest { @Test void decode_withValidDateTime_shouldReturnOffsetDateTime() { - LocalDateTime localDateTime = LocalDateTime.of(2021, 12, 1, 0, 0, 0); + LocalDateTime localDateTime = LocalDateTime.of(2021, 11, 1, 0, 0, 0); String epoch = String.valueOf(localDateTime.toInstant(ZoneOffset.UTC).toEpochMilli()); BsonReader reader = new JsonReader("{\"date\": {\"$date\":" + epoch + "}}"); reader.readStartDocument(); @@ -31,7 +31,7 @@ void decode_withValidDateTime_shouldReturnOffsetDateTime() { OffsetDateTime result = dateCodec.decode(reader, DecoderContext.builder().build()); - OffsetDateTime expected = OffsetDateTime.of(2021, 12, 1, 0, 0, 0, 0, ZoneOffset.UTC); + OffsetDateTime expected = OffsetDateTime.of(2021, 11, 1, 0, 0, 0, 0, ZoneOffset.UTC); OffsetDateTime desiredOffsetDateTime = expected.withOffsetSameInstant(ZoneOffset.of("+01:00")); assertEquals(desiredOffsetDateTime, result);