Menu
Hi,
Here’s some of the code:
var d = new Date();
if(!e)
e = new Date();
var tdiff = d.getTime() – e.getTime();
d.setTime(tdiff + hour*60*1000 + min*1000 + sec
So the tdiff is 0. Then I’m trying to add the offset sent by the user for hours, minutes, and seconds. The minutes and seconds are correct, but the hours is off. It always shows 18 when the hour is set to 0. Is this the proper way to accomplish this task?
Thanks!
?