Z
Zamdrist
I'm looking at an application written by a third party, its not my
code. While I'm a programmer type, I'm not terribly versed in the
details of Javacript.
Our problems lies in that during the recent daylight savings change,
we've had a user, who resides in the Mountain timezone. The software,
a web application was showing a timer with the the wrong start time,
one hour wrong. Both the server and his machine said the correct time,
that is Windows said the correct time.
I think I've tracked down the code from the application that
determines the time. Can someone tell me if this code is correct, and
if its possible determine if it could be the culprit?
var date = new Date();
date.setTime(date.getTime() + 3650*24*60*60*1000);
I know that getTime returns the number of milliseconds from 1/1/1970,
so supposedly the addition of (3650*24*60*60*1000) brings the value of
getTime to a current time...?
Ideas? Thanks
code. While I'm a programmer type, I'm not terribly versed in the
details of Javacript.
Our problems lies in that during the recent daylight savings change,
we've had a user, who resides in the Mountain timezone. The software,
a web application was showing a timer with the the wrong start time,
one hour wrong. Both the server and his machine said the correct time,
that is Windows said the correct time.
I think I've tracked down the code from the application that
determines the time. Can someone tell me if this code is correct, and
if its possible determine if it could be the culprit?
var date = new Date();
date.setTime(date.getTime() + 3650*24*60*60*1000);
I know that getTime returns the number of milliseconds from 1/1/1970,
so supposedly the addition of (3650*24*60*60*1000) brings the value of
getTime to a current time...?
Ideas? Thanks