The reason appears to be this line:
private static final EraCalc GREGORIAN_ERA_CALC = new GregorianEraCalc().init(1583,
1999999);
This causes a call to new Date(1999999-1950)... which fails in FF, but succeeds
in Safari. The
public double calcYearField(double timeInMs, DateFields dateFields) {
checkTimestampNotLessThan(timeInMs, this.minTimeStamp);
checkTimestampLessThan(timeInMs, this.maxTimeStamp);
}
then throws unsupported operation exception.
Both Safari and FF return NaN for something like new Date(19999999+1900, 0,
1).getTime()
But Safari will allow setFullYear(1999999+1950, 0, 1) to succeed, whereas it
fails on FF and
returns NaN.
-Ray
Original issue reported on code.google.com by chadtaka...@gmail.com on 1 Jan 2009 at 12:04
Original issue reported on code.google.com by
chadtaka...@gmail.com
on 1 Jan 2009 at 12:04