Skip to content

Commit 3738297

Browse files
committed
Test fix
1 parent 9e8e98b commit 3738297

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/BaseDateTimeDt.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ protected String encode(Date theValue) {
104104
}
105105
GregorianCalendar cal;
106106
if (myTimeZoneZulu) {
107-
cal = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
107+
cal = new GregorianCalendar(getTimeZone("GMT"));
108108
} else if (myTimeZone != null) {
109109
cal = new GregorianCalendar(myTimeZone);
110110
} else {
@@ -268,7 +268,7 @@ public Integer getSecond() {
268268
*/
269269
public TimeZone getTimeZone() {
270270
if (myTimeZoneZulu) {
271-
return TimeZone.getTimeZone("GMT");
271+
return getTimeZone("GMT");
272272
}
273273
return myTimeZone;
274274
}
@@ -579,7 +579,7 @@ private BaseDateTimeDt setTimeZone(String theWholeValue, String theValue) {
579579
parseInt(theWholeValue, theValue.substring(1, 3), 0, 23);
580580
parseInt(theWholeValue, theValue.substring(4, 6), 0, 59);
581581
clearTimeZone();
582-
setTimeZone(getTimeZone(theValue));
582+
setTimeZone(getTimeZone("GMT" + theValue));
583583
}
584584

585585
return this;

0 commit comments

Comments
 (0)