Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: world time

  1. #1
    Join Date
    Jan 2008
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default world time

    hi my name is URL removed by admin as requested, recently i reg. a domain with google and now trying design a web page in dreamweaver. in my web i would like to add world clock, i added the codes according to your site advice, but its not updating the time, every time when i am refreshing the page again its starting from 0. i am not an expert, u can chk my designed page i.e URL removed by admin as requested kindly do the need full.

    tks jaison
    Last edited by ddadmin; 02-04-2008 at 04:05 AM.

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    I think it is working now when I refreshed it showed the current time.

  3. #3
    Join Date
    Jan 2008
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    its not workinng yaar (pls chk on the right hand side world clock) its showing the same time when refershing.

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.

  5. #5
    Join Date
    Jan 2008
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default my clock is no working

    i choosen codes from dynamicdrive.com i.e. http://www.dynamicdrive.com/dynamicindex6/localtime.htm , the time is not updating, kindly do the needfull my web is URL removed by admin as requested kindly do the need full

    jaison
    Last edited by ddadmin; 02-04-2008 at 04:05 AM.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    First of all, this script must be on a server with the selected server side language enabled. Your live version appears to work. However NYC is off by one hour, it should be -120 or -240, not -180. I don't know for sure about the other locations, but London appears to be off by 6 hours (360 in one or the other direction, so 420 or -300 instead of 60)
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Jan 2008
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    tks john, even then any time gap it should update right, its not updating when i am refershing again it starting from the same time

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I don't know what you did, but now it's not working at all. If you intend to use server-side PHP, your server must support PHP and the page's extension must be .php not .html
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Jan 2008
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    tks john, i wil write to u in detail, i taken a domain from google and now i am trying to design on dreamweaver, not yet hosted, but i can upload to google page and i can test it. i taken the world time format from dynamicdrive.com. In this do we need to change any thing, i simply copied and pasted, i will tell u one more web page i.e. http://www.figfactsos.com/index.php i need the clock liek that. now i converted into php format. i.e URL removed by admin as requested. in world time tags i modified this tag
    var servertimestring=(servermode=="server-php")? '<? print date("F d, Y H:i:s", time())?>' : (servermode=="server-ssi")? '<!--#config timefmt="%B %d, %Y %H:%M:%S"--><!--#echo var="DATE_LOCAL" -->' : '<%= Now() %>'
    any modification need , pls tell me
    Last edited by ddadmin; 02-04-2008 at 04:06 AM.

  10. #10
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You host doesn't support PHP. If it supports another server side language, use that. Otherwise, you will need to use a completely client side script and be at the mercy of your users having their clocks set right.

    Here's one such client side only script:

    http://www.arachnoid.com/lutusp/worldclock.html
    Last edited by jscheuer1; 01-03-2008 at 05:36 PM. Reason: add info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •