• Resolved M

    (@infolegal)


    The date in edit.php is showing all wrong for posts at least 24h old and for drafts. Instead of the chosen date format they are displayed: PM/joi/337
    The code behind it looks like this:
    <td class="date column-date"><abbr title="04.12.2014 15:41:58">PM/joi/337</abbr><br>Publicat</td>

    I tried setting a custom date (a StackExchange solution), but it didn’t work. I am not going to hack core files, but I do need to know if this is a problem on the server or on the WP install itself.

    Thanks in advance for any answers.

Viewing 10 replies - 1 through 10 (of 10 total)
  • What is the value of “Settings > General > Date format”?

    Thread Starter M

    (@infolegal)

    value="j F Y" name="date_format"
    and
    value="G:i" name="time_format"

    Strange thing is I have several other wp installs, save WP version, but on all it works perfectly. I’m beginning to suspect it might be something on the server and not on the WP install.

    Thanks a lot for looking into this!

    what language are you using for your WordPress installation in the admin section?

    does the problem persist if you temporarily deactivate all plugins?

    it feels like your installation is interpreting a date format like:
    'A/D/z' or 'A/l/z'

    https://php.net/manual/en/function.date.php
    i.e.
    – it is using A to show PM/AM (PM for afternoon time)
    – it is using D or l to show the name of the day of the week (joi for Thursday in Romanian language)
    – it is using z to show the day of the year (day 337 of the year)

    Thread Starter M

    (@infolegal)

    Language is Romanian. I will try de-activating the plugins if any of them is causing the problem.

    Thread Starter M

    (@infolegal)

    After updating to 4.1 all my websites show the same error. All running under Romanian as interface language. It looks more like a general bug and not a plugin related one.

    I tried switching to English and the date shows correctly now. Any suggestions on how to fix? many thanks.

    @m: Romanian translation is broken. Find line with Y/m/d g:i:s A in admin-ro_RO.po and change value from translation. (references /wp-admin/includes/class-wp-posts-list-table.php:766)

    Thread Starter M

    (@infolegal)

    @alex.jittu: Thanks for the hint. I tried out your suggestion, but it’s now working. And in the .po file it actually seems that the translation is correct: d.m.Y G:i:s

    So maybe the problem is somewhere else?

    Thread Starter M

    (@infolegal)

    And, same issue occurs on the edit-comments.php page. “Sent on” date is displayed the same way as the date in posts table.

    @m: In your ro_RO.po file, search for string A/l/z. Change that in d m Y G:i and you’re good.

    Thread Starter M

    (@infolegal)

    @alex.jittu: that did it ?? Problem was indeed in ro_RO.po. Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Problem with date in posts page’ is closed to new replies.