JavaScript Date functions in Safari
My JavaScript program runs fine in several browsers but not Safari. The following JavaScript code snippet demonstrates the problem:
var seconds=2264773322794;
day = new Date();
day.setTime(seconds);
alert(day);
Most browsers show this as October 7, 2041, but Safari shows this as January 18, 2038, which is obviously wrong. I'm really stuck doing anything with Safari if it can't handle this.
var seconds=2264773322794;
day = new Date();
day.setTime(seconds);
alert(day);
Most browsers show this as October 7, 2041, but Safari shows this as January 18, 2038, which is obviously wrong. I'm really stuck doing anything with Safari if it can't handle this.