PDA

View Full Version : Local Time script



Bushido27
07-13-2007, 07:29 PM
1) Script Title: Local Time script

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

3) Describe problem: Error code display : NaN:NaN:NaN AM (undefined)

Url to my test page ( plz note : that page runs on my home server ) :

http://74.59.241.37/site/test.php

thanks in advance :)

thetestingsite
07-13-2007, 07:33 PM
Cannot find server. Some things you may want to check is in the source code see if it displays the server time in the javascript on this line in place of the part in red:



var servertimestring=(servermode=="server-php")? '<? print date("F d, Y H:i:s", time())?>' : (servermode=="server-ssi")? '<!--#config timefmt="&#37;B %d, %Y %H:%M:%S"--><!--#echo var="DATE_LOCAL" -->' : '<%= Now() %>'


If it doesn't, you could try doing this for the part in red to see if that fixes it.



<?php print date("F d, Y H:i:s", time());?>


Hope this helps

Bushido27
07-13-2007, 07:37 PM
haha :)

Thanks for the fast answer, it worked :)

No more headache for me today :)

Great team !