View Full Version : Help - Local Time script

10-22-2007, 11:14 PM
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.

10-23-2007, 01:46 AM
Is SSI working correctly on that page? Right now it doesn't seem so, since if you view the source:

(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.

10-23-2007, 02:13 AM
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?