This commit is contained in:
jamesagnew 2020-10-19 20:13:31 -04:00
parent 9e8e98b6fb
commit 3738297354
1 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ public abstract class BaseDateTimeDt extends BasePrimitive<Date> {
} }
GregorianCalendar cal; GregorianCalendar cal;
if (myTimeZoneZulu) { if (myTimeZoneZulu) {
cal = new GregorianCalendar(TimeZone.getTimeZone("GMT")); cal = new GregorianCalendar(getTimeZone("GMT"));
} else if (myTimeZone != null) { } else if (myTimeZone != null) {
cal = new GregorianCalendar(myTimeZone); cal = new GregorianCalendar(myTimeZone);
} else { } else {
@ -268,7 +268,7 @@ public abstract class BaseDateTimeDt extends BasePrimitive<Date> {
*/ */
public TimeZone getTimeZone() { public TimeZone getTimeZone() {
if (myTimeZoneZulu) { if (myTimeZoneZulu) {
return TimeZone.getTimeZone("GMT"); return getTimeZone("GMT");
} }
return myTimeZone; return myTimeZone;
} }
@ -579,7 +579,7 @@ public abstract class BaseDateTimeDt extends BasePrimitive<Date> {
parseInt(theWholeValue, theValue.substring(1, 3), 0, 23); parseInt(theWholeValue, theValue.substring(1, 3), 0, 23);
parseInt(theWholeValue, theValue.substring(4, 6), 0, 59); parseInt(theWholeValue, theValue.substring(4, 6), 0, 59);
clearTimeZone(); clearTimeZone();
setTimeZone(getTimeZone(theValue)); setTimeZone(getTimeZone("GMT" + theValue));
} }
return this; return this;