Ready to get started?Download WordPress


WP Publication Archive
problem with date on WMPL translated site (1 post)

  1. Pbearne
    Posted 1 year ago #


    I am coding a multi language site using WPML

    and am getting (January 1, 1970) as the date

    this is because WPML has translate the date string to "mars 29, 2013" and the function strtotime() you use to convert it back to returns false for this string

    class. publishcation-markup.php line 152

    all you are doing here is overriding the wordpress date format which can set in setting->general so I feel the safest way to fix this is not to override this setting

    and Change

    $date = '<span class="date">(' . date( 'F j, Y', strtotime( $this->date ) ) . ')</span>';
    $date = '<span class="date">(' . $this->date . ')</span>';

    please can make this change



Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Pbearne
  • This topic is not a support question
  • WordPress version: 3.5.1