• Resolved adamLaughlin

    (@adamlaughlin)


    I’ve pored through these forums and StackExchange, and I think I have either a really unique or super-simple problem…

    I’m developing this site for my client:
    https://laughlinweb.net/site/mpr/category/blog/
    [Category “blog” used as example of issue]

    …I think you can see the problem. Here is the code:

    <h4 class="mpr-list-date"><?php the_time('m F Y'); ?></h4>

    Is this some kind of Apache problem? It’s a brand new InMotion Hosting account, they seem to be better than that. Or is it simply understood that new server users configure their own Apache time settings?

    I don’t think I am going to get out of this one myself. Many thanks to anyone who offers their wisdom…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi adamLaughlin,

    Fundamental question: if you take a look at the post list in your dashboard, are the dates correct?

    Oh, I get it. You should use:

    <h4 class="mpr-list-date"><?php the_time('d F Y'); ?></h4>

    m in date formatting stand for numeric representation of the month, so there’s no wonder that it always shows 1st as January is the first month.

    Thread Starter adamLaughlin

    (@adamlaughlin)

    Oh wow so it’s a complete mistake, thanks a lot for taking a look at my request.

    Saved me probably…. two hours?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Function the_time() displays January 1 on all posts’ is closed to new replies.