WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Date and time formatting isn’t working

[Resolved] Date and time formatting isn’t working

  • I tried changing the default date and time format, and while it displays correctly under Options->General (as the example), posts still use the old (original default) format.

    I don’t know what versions of PHP and MySQL my webhost is running, though I could find out if it’s necessary.

Viewing 3 replies - 1 through 3 (of 3 total)
  • What theme are you running? IIRC, some themes override how dates and times are displayed. (They certainly do over in WP.com land.)

    I ran the default theme for 2.0.3. I’ve now changed theme but the same thing happens. If this is a theme problem, what would I need to change in order to fix it?

    Edit: Nevermind, I think I found it. Thanks for the hint, though it makes me wonder why exactly there is an option to change it if it doesn’t work.

    gentist, the option that exists within the admin area is not for changing how the the date/time is displayed, but for taking into account that you might be in CST and your host might be in GMT, in other words, its for handling time offset, not display, per se.

    The disply is handled entirely by how the theme has it set up.

    <?php the_time('F jS, Y'); ?> etc (however you want it)..

    or

    <?php the_date('D','M','Y');?>, etc (however you want it)…

    see http://codex.wordpress.org/Template_Tags/the_date for more info

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Date and time formatting isn’t working’ is closed to new replies.
Skip to toolbar