1.1 --- a/src/jdk/nashorn/internal/objects/NativeDate.java Fri Feb 22 23:33:46 2013 -0400 1.2 +++ b/src/jdk/nashorn/internal/objects/NativeDate.java Mon Feb 25 16:58:31 2013 +0530 1.3 @@ -40,8 +40,8 @@ 1.4 import jdk.nashorn.internal.objects.annotations.SpecializedConstructor; 1.5 import jdk.nashorn.internal.objects.annotations.Where; 1.6 import jdk.nashorn.internal.runtime.ConsString; 1.7 -import jdk.nashorn.internal.runtime.Context; 1.8 import jdk.nashorn.internal.runtime.JSType; 1.9 +import jdk.nashorn.internal.runtime.ScriptEnvironment; 1.10 import jdk.nashorn.internal.runtime.ScriptFunction; 1.11 import jdk.nashorn.internal.runtime.ScriptObject; 1.12 import jdk.nashorn.internal.runtime.ScriptRuntime; 1.13 @@ -104,10 +104,10 @@ 1.14 } 1.15 1.16 NativeDate(final double time) { 1.17 - final Context context = Global.getThisContext(); 1.18 + final ScriptEnvironment env = Global.getEnv(); 1.19 1.20 this.time = time; 1.21 - this.timezone = context.getTimeZone(); 1.22 + this.timezone = env._timezone; 1.23 this.setProto(Global.instance().getDatePrototype()); 1.24 } 1.25 1.26 @@ -886,7 +886,7 @@ 1.27 if (fields[DateParser.TIMEZONE] != null) { 1.28 d -= fields[DateParser.TIMEZONE] * 60000; 1.29 } else { 1.30 - d = utc(d, Global.getThisContext().getTimeZone()); 1.31 + d = utc(d, Global.getEnv()._timezone); 1.32 } 1.33 d = timeClip(d); 1.34 return d;