Support » Fixing WordPress » Can’t get the date right

  • Hi! I’m having a hard time trying to figure out on how to get the date corrected on wordpress, can someone help me please? 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • Could it be your server with the wrong date and time? If you have command line access to it check that. Otherwise the only place in wordpress that I have seen the time is just the offset, under the options tab.

    Having the same problem, tried changing the date via Options, but each time I press the “Update Option” button, it clears the textfield and date didn’t adjust.

    If you are using the Deafult (Kubrick) theme it is hardcoded in the templates: index.php, archive.php, single.php etc.

    hmmm, shouldn’t there be something that you can change and all these other pages can just refer to it? It’s just that, if ppl doesnt know what to change in the code (e.g. me), couldn’t they just copy and paste something somewhere?

    If i was to change the code in archive.php… what would it be and to what? 🙂

    This is how it works (very briefly):
    For displaying the date and time WP uses two template tags: the_date and the_time (see the difference in the Codex).
    Now if you have in your template(s) only a code like this <?php the_date(); ?> the parameters will be passed on from the settings you define in your admin panel > Options. However if the template uses the code – like in the Default theme – like this <?php the_time('F jS, Y') ?> your settings in the admin panel have no effect.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t get the date right’ is closed to new replies.