Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ public void upsertApplicationAdvisorInsightTest() {
}

/**
* The core DateDeserializer parses timestamps in the JVM default time zone (offset ignored).
* The fixtures use an explicit +00:00 offset, which DateDeserializer honors, so expected dates are in UTC.
*/
private static Date localDate(String dateTime) {
return Date.from(LocalDateTime.parse(dateTime).atZone(ZoneId.systemDefault()).toInstant());
return Date.from(LocalDateTime.parse(dateTime).atZone(ZoneId.of("UTC")).toInstant());
}

private void assertAdvisorCheck(AdvisorCheck check) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ public void listExternalQaChecksTest() {
}

/**
* The core DateDeserializer parses timestamps in the JVM default time zone (offset ignored).
* The fixtures use an explicit +00:00 offset, which DateDeserializer honors, so expected dates are in UTC.
*/
private static Date localDate(String dateTime) {
return Date.from(LocalDateTime.parse(dateTime).atZone(ZoneId.systemDefault()).toInstant());
return Date.from(LocalDateTime.parse(dateTime).atZone(ZoneId.of("UTC")).toInstant());
}

private void assertCustomSpellchecker(CustomSpellchecker spellchecker) {
Expand Down
Loading