• I posted an entry at January 01, 2006 @ 00:01 but when I published it, the timestamp displayed: # January 1st, 2006
    # 12:01 am. It is not correct, isn’t it?

    Do you think that it is a bug?

    pcdinh

Viewing 5 replies - 1 through 5 (of 5 total)
  • What is the theme you’re using?

    Check your theme’s templates to make sure they do not use the_time() template tag with a date format string which is generating your time in am/pm format.

    i dont undestand.. i have too this tag in classic theme.

    <?php the_time() ?>

    And have same problem that pcdinh

    Regards and Happy new year

    Kapikua

    I think this may just be a misunderstanding of AM and PM. “January 01, 2006 @ 00:01” is “January 1st, 2006, 12:01 am.”

    It seems weird, but it goes like this:
    11 PM
    12 AM
    1 AM
    etc.

    Thread Starter pcdinh

    (@pcdinh)

    I have been using rdc0.7. The code in template is as follows:

    <li class=”icon date”><?php the_time(‘F jS, Y’) ?>
    <li class=”icon time”><?php the_time(‘g:i a’); ?>

    “January 01, 2006 @ 00:01 but when I published it, the timestamp displayed: January 1st, 2006 12:01 am. It is not correct, isn’t it?”

    Actually it is correct. 00:01 is the same as 12:01am. AM means “ante meridiem” or before noon (and likewise, PM means post meridiam and afternoon).

    If you want times in a 24 hour format, use
    the_time('G:i a')
    instead of
    the_time('g:i a')

    See: https://uk2.php.net/date and https://codex.www.ads-software.com/Formatting_Date_and_Time

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Date Time Bug?? in WP 2.0’ is closed to new replies.