Results 1 to 5 of 5

Thread: Live Date Script is 12 hours out

  1. #1
    Join Date
    Mar 2010
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Live Date Script is 12 hours out

    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

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Mar 2010
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Mar 2010
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •