Skip to content

Commit

Permalink
RestEasy Jackson test fails in certain time zones, fix quarkusio#39507
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Mar 19, 2024
1 parent b1029b8 commit 5a2d5cc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import java.sql.Date;
import java.time.LocalDate;
import java.time.ZoneOffset;

import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
Expand All @@ -24,7 +23,7 @@ class GreetingResourceTest {
void testEndpoint() throws DatatypeConfigurationException {

final LocalDate localDate = LocalDate.of(2019, 01, 01);
final Date sqlDate = new Date(localDate.atStartOfDay(ZoneOffset.UTC).toInstant().toEpochMilli());
final Date sqlDate = new Date(119, 0, 1);
final XMLGregorianCalendar xmlGregorianCalendar = DatatypeFactory.newInstance()
.newXMLGregorianCalendar("2019-01-01T00:00:00.000+00:00");
final Greeting greeting = new Greeting("hello", localDate, sqlDate, xmlGregorianCalendar);
Expand Down

0 comments on commit 5a2d5cc

Please sign in to comment.