PDA

View Full Version : Resolved "Local Time script" I want to hide the day and just show the time



coreyvf
11-19-2008, 04:45 PM
1) Script Title: Local Time script

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

3) Describe problem:

Hi there,
I'm using the Local Time script and I have it set to short but it shows the time like this:

11:44:08 AM (Wed)

That's all fine, but I'd rather the script just showed the time and not the day or date at all. Can you please tell me how to change this so it only shows the time? I'm using the SSI version of the script.

coreyvf
11-19-2008, 05:23 PM
Got the answer thanks:

Replace this line:

this.container.innerHTML=formatField(hour, 1)+":"+formatField(minutes)+":"+formatField(seconds)+" "+ampm+" ("+dayofweek+")"

With this line:

this.container.innerHTML=formatField(hour, 1)+":"+formatField(minutes)+":"+formatField(seconds)+" "+ampm+" "