From b31bbd43f8401ce5472e6cf54c2e1421bafd4654 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 18 Feb 2005 10:50:32 +0000 Subject: [PATCH] fixed the new 1-arg JSDate constructor darcs-hash:20050218105032-5007d-80c2efc216c1c1af031bf392b4dee78d712b93b8.gz --- src/org/ibex/js/JSDate.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/org/ibex/js/JSDate.java b/src/org/ibex/js/JSDate.java index 324ef68..8d267d2 100644 --- a/src/org/ibex/js/JSDate.java +++ b/src/org/ibex/js/JSDate.java @@ -890,7 +890,11 @@ public class JSDate extends JS.Immutable { private static double _toNumber(JS o) throws JSExn { return JSU.toDouble(o); } private static double _toNumber(JS[] o, int index) throws JSExn { return JSU.toDouble(o[index]); } - public JSDate(long l) throws JSExn { this.date = (double)l; } + public JSDate(long l) throws JSExn { + this.date = (double)l; + thisTimeZone = java.util.TimeZone.getDefault(); + LocalTZA = thisTimeZone.getRawOffset(); + } public JSDate(JS[] args) throws JSExn { -- 1.7.10.4