PDA

View Full Version : Resolved live clock without AM/PM



chechu
05-01-2009, 08:00 PM
1) Script Title: live clock

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

3) Describe problem: The script is made so that the time changes from AM into PM after noon. In other countries, the counter goed up till 23h59. How can that script be adjusted to achieve that, please ?

Snookerman
05-01-2009, 08:20 PM
Remove this:

var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
and this:

var cdate="<small><font color='000000' face='Arial'><b>"+dayarray[day]+","+montharray[month]+
" "+daym+","+year+" "+hours+":"+minutes+":"+seconds+" "+dn+"</b></font></small>"

Good luck!

chechu
05-01-2009, 09:32 PM
Perfect ! Thanks a lot !

Snookerman
05-02-2009, 06:08 AM
You're welcome chechu, glad to help you.

Good luck with your site!