Fix breaking test

This commit is contained in:
James Agnew 2015-12-14 18:25:55 -05:00
parent 2eaa1eddae
commit feaf33dfd9
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ public class BaseDateTimeDtTest {
DateTimeDt dt = DateTimeDt.withCurrentTime();
String str = dt.getValueAsString();
char offset = str.charAt(19);
if (offset != '+' && offset != '-') {
if (offset != '+' && offset != '-' && offset != 'Z') {
fail("No timezone provided: " + str);
}
}
@ -75,7 +75,7 @@ public class BaseDateTimeDtTest {
InstantDt dt = InstantDt.withCurrentTime();
String str = dt.getValueAsString();
char offset = str.charAt(23);
if (offset != '+' && offset != '-') {
if (offset != '+' && offset != '-' && offset != 'Z') {
fail("No timezone provided: " + str);
}
}