projects
/
org.ibex.js.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed the new 1-arg JSDate constructor
[org.ibex.js.git]
/
src
/
org
/
ibex
/
js
/
JSDate.java
diff --git
a/src/org/ibex/js/JSDate.java
b/src/org/ibex/js/JSDate.java
index
324ef68
..
8d267d2
100644
(file)
--- 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]); }
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 {
public JSDate(JS[] args) throws JSExn {