April 10th, 2003, 12:21 PM
I apologise in advance if this sounds a bit long winded...
I convert that time from milliseconds to seconds by dividing by 1000.
That value is sent to a cgi written in C, converted from a string to a long and then using ctime(longvalue) the dates should be same.
(I actually need the seconds value, not the actual date string)
The problem is that the dates don't match.
I've subtracted the timezone offset but it just doesn't work
I'm obviously doing something wrong
var conv=new Date(year,month,day,0,0,0);
// this value is set before the form is submitted to the cgi
Any pointers would be greatly appreciated.