Support » Plugin: WP Publication Archive » problem with date on WMPL translated site

  • Hi

    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>';
    to
    $date = '<span class="date">(' . $this->date . ')</span>';

    please can make this change

    Paul

    http://wordpress.org/extend/plugins/wp-publication-archive/

  • The topic ‘problem with date on WMPL translated site’ is closed to new replies.