Skip to content

Commit

Permalink
JodaOrg#524 Don't change of time zone Id in a call to DateTimeZone.forID
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Wolkenstein authored and Thomas Wolkenstein committed Oct 13, 2021
1 parent 34ebcb4 commit d2f1bb0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public void test_printParseZoneGMT() {
DateTimeFormatter f = bld.toFormatter();

DateTime dt = new DateTime(2007, 3, 4, 12, 30, 0, DateTimeZone.forID("GMT"));
assertEquals("2007-03-04 12:30 Etc/GMT", f.print(dt));
assertEquals("2007-03-04 12:30 GMT", f.print(dt));
assertEquals(dt, f.parseDateTime("2007-03-04 12:30 GMT"));
}

Expand All @@ -501,7 +501,7 @@ public void test_printParseZoneGMT_suffix() {
DateTimeFormatter f = bld.toFormatter();

DateTime dt = new DateTime(2007, 3, 4, 12, 30, 0, DateTimeZone.forID("GMT"));
assertEquals("2007-03-04 12:30 Etc/GMT]", f.print(dt));
assertEquals("2007-03-04 12:30 GMT]", f.print(dt));
assertEquals(dt, f.parseDateTime("2007-03-04 12:30 GMT]"));
}

Expand Down

0 comments on commit d2f1bb0

Please sign in to comment.