Support » Themes and Templates » Clock On my Theme

  • I downloaded a them that shows the current time but the current time that’s being shown is in military time. How can I change that.What is the actual code to stop the clock from displaying in military time?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Can you provide a link to the theme you downloaded or to your site?

    And please edit the tag “miliary” so that people who might be searching for “military” (and I’d suggest “military time” instead) will find this post.

    The site is still being developed but you can view it at

    See if there is something like this in your liveclock.js javascript:

    // Display the time in 24 or 12 hour time?
    // 0 = 24, 1 = 12

    var my12_hour = 1;

    By default, the script I have was set to 0 (24 hr clock)

    I took a look at the clock javascript you are using. It is a little bit different than the liveclock.js I have. You can find it in your themes folder at;


    I think that if you un-comment these two lines;

    // if (hours>12) { hours=hours-12 }
    // if (hours==0) { hours=12 }

    It may give you a 12 hour clock. Someone please jump in if I’m incorrect. Best of luck!

    I would like to thank everyone that has provided me with information to solve my problem I really appreciate it.
    Thank you.

    I know the issue is resolved but I thought I’d throw this out there in case someone else stumbles across this thread. You can add time and date to your blog with simple PHP rather than using javascript. For instance <?php echo date("F j, Y, g:i a"); ?> will output Month,date,year,time(am/pm) More info here.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Clock On my Theme’ is closed to new replies.