Qt-interest Archive, June 2007
QtScript: Bug in Date.parse, or mistake at my side?
Message 1 in thread
According to ECMA-262 the Date.parse should work in the following
example:
var x = new Date();
print(x.valueOf()); // the result we expect in the next two statements
print(Date.parse(x.toString()));
print(Date.parse(x.toUTCString()));
However what I get is an error message along with a large negative
number:
QDateTime::fromString: Paremeter out of range
-210892374000000
I also did a wild guess and added a QDateTime format string as second
parameter, however also without luck.
Any thoughts?
--
[ signature omitted ]