Results 1 to 3 of 3

Thread: Help - Local Time script

  1. #1
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help - Local Time script

    1) Script Title: Local Time script

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

    3) Describe problem: I've been using this script on my site (http://mk-translation.com/) for a long time and it has always worked with no problem. A few days ago I was updating an image file for my site, and while I was at it I deleted a lot of old and useless image files. Consequently, instead of dragging the new html folder on my hard drive onto the old one on the server to replace it, I deleted the html folder on the server first and then uploaded the new one. Now the clock doesn't work.

    I did not change any code in any of the pages. Is there some sort of file that has to be in the html folder for this script to work that I may have deleted?

    Thanks in advance for your help.

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

    Default

    Is SSI working correctly on that page? Right now it doesn't seem so, since if you view the source:

    Code:
    (servermode=="server-ssi")? '<!--#config timefmt="%B %d, %Y %H:%M:%S"-->
    The part in red above should actually be the current date/time of your server, assuming SSI is working on that page that is.

  3. #3
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks :)

    Thanks for your help! I just tried switching the extension of index.html to index.shtml and that fixed it. I wonder why it was working before..... Any ideas? Or should I just change all the extensions and rewrite the code to match?

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
  •