[resolved] Date and time formatting isn't working (4 posts)

  1. Gentist
    Posted 10 years ago #

    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.

  2. drmike
    Posted 10 years ago #

    What theme are you running? IIRC, some themes override how dates and times are displayed. (They certainly do over in WP.com land.)

  3. Gentist
    Posted 10 years ago #

    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.

  4. whooami
    Posted 10 years ago #

    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)..


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

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.