Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
MOB-5721 the 'Z' is for zulu time only, not for time patterns with ti…
Browse files Browse the repository at this point in the history
…me zone offset
  • Loading branch information
mdavila committed Jun 11, 2018
1 parent de371cd commit 69ededc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public class QueryDateTests {

@Test
public void test24HourDateConversions() {
ZonedDateTime date = ZonedDateTime.parse("2018-06-04T09:07:30-04:00Z");
ZonedDateTime date = ZonedDateTime.parse("2018-06-04T09:07:30-04:00");
QueryDate qd = new QueryDate(date.toInstant().toEpochMilli());
assertThat(qd.toString().indexOf("2018-06-04T13:07:30:00Z"), not(equalTo(-1)));
assertThat(qd.toString().indexOf("2018-06-04T13:07:30.00Z"), not(equalTo(-1)));
}
}

0 comments on commit 69ededc

Please sign in to comment.