Support » Fixing WordPress » Date throught wordpress is wrong

  • Resolved forwardslashdigital

    (@forwardslashdigital)


    Our WordPress installation shows all September dates as Sepr. We have spent many hours trying to resolve this issue and cannot find from where it has originated.

    If anyone has any idea as to why this is happening it would be great if you could help, it is frustrating everyone here.

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Typically dates are rendered via the template tag, the_time(), or the_date(). Use Template Hierarchy to figure out what template is being used to display that date and look for problems.

    If you continue this thread please provide a link to download the theme you are using and a link to see the problem.

    Thread Starter forwardslashdigital

    (@forwardslashdigital)

    I have tried using those. Every time I try to reformat the date, it is removed from the site.

    The theme has been coded especially for our site and is only used for the blog, not the whole site.

    URL to the blog:
    http://forwardslashdigital.com/blog

    If we can’t see the code its gong to be difficult to help.

    Look for something similar to the following inside your php source code.

    <td align="center" valign="top" class="datebackgro">
    <small>
    <b>Sepr</b>
    <br />
    7th <!-- by showell -->
    </small>
    </td>

    Be aware that in you php source you won’t find exactly that bit of code. At least part of it– the part concerning the date– will be different. If you can find where the <td> tag starts though you should be able to find whatever is formatting that date. It should be one of the functions MichaelH mentioned or one of PHP’s date functions.

    Hi,
    Start here: http://www.xhtml-css.com/check#
    I did that because in IE7 your “”It’s all about ROI”” statement is too far too the right, out of the screen.
    And validation showed this:
    Sorry, I am unable to validate this document because on line 235. it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.
    Maybe not related to your date problem?

    Thread Starter forwardslashdigital

    (@forwardslashdigital)

    hey apljdi, it is not like that unfortunately, that would make it easier. it shows sepr in the backend of wordpress too. and it will not let me change the date format.

    the code uses the ‘the_date’ function in wordpress. the person we outsourced the wordpress coding to has somewhere put a trim or explode then remove function somewhere in the code to remove some of the date.

    the code itself for the page is:
    <small>
    <?php the_time(‘<b>F</b>’) ?>

    <?php the_time(‘jS’) ?>
    </small>

    ‘F’ in php_date is the full textual representation (September).

    As i said earlier it shows in the backend to, and changing the ‘F’ to ‘M’ just removes the date from the site and the backend too.

    Wouldn’t it be something like:

    <b>
    <?php the_time('F') ?>
    </b>

    Thread Starter forwardslashdigital

    (@forwardslashdigital)

    solved. someone had edited the locale.php file

    Ahhh… core edits. Loads of fun. 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Date throught wordpress is wrong’ is closed to new replies.