Results 1 to 4 of 4

Thread: live clock without AM/PM

  1. #1
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default live clock without AM/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 ?
    Last edited by Snookerman; 05-02-2009 at 06:09 AM. Reason: added “Resolved” prefix

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Remove this:
    Code:
    var dn="AM"
    if (hours>=12)
    dn="PM"
    if (hours>12){
    hours=hours-12
    }
    if (hours==0)
    hours=12
    and this:
    Code:
    var cdate="<small><font color='000000' face='Arial'><b>"+dayarray[day]+","+montharray[month]+
    " "+daym+","+year+" "+hours+":"+minutes+":"+seconds+" "+dn+"</b></font></small>"
    Good luck!

  3. #3
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome chechu, glad to help you.

    Good luck with your site!

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
  •