PDA

View Full Version : Live Date Script is 12 hours out



Flock001
06-25-2010, 08:09 AM
1) Script Title: Live Date

2) Script URL (on DD): http://www.dynamicdrive.com

3) Describe problem:

Hi,
Can you please help at all?

I have set up a clock on the following website www.dpc.co.uk
But the clock is miles out... 12 hours I think but I don't know how to change it to GMT. Can anyone help me with advice on how I can sort the problem?

Many thanks
Phil

djr33
06-25-2010, 08:13 AM
The script uses Javascript to get the time from the local computer. I don't see a reason it would be wrong because of a timezone. What do you see, and what should you see? Are you sure your system time is correct?

Flock001
06-25-2010, 08:52 AM
Hi Danierl, Thanks fort replying so quickly. My system time is correct but the time on the website is 8 hours behind.

Not sure how I can change it.

Phil

djr33
06-25-2010, 09:00 AM
I'm still not sure why this is occurring. It works for me, but that might be because I'm at the same time zone that you are seeing. I hope someone else will know.

Flock001
06-25-2010, 09:49 AM
Nailed it!

This was what it was...
var timeZone=-8 //set to time zone's offset from Universal Time

This was what it now is...
var timeZone=-0 //set to time zone's offset from Universal Time

Thanks for your help though.