mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-16 18:05:19 +00:00
Fix breaking test
This commit is contained in:
parent
2eaa1eddae
commit
feaf33dfd9
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user