Support » Plugin: Rank Math SEO » persian jalali date

  • Resolved Ali

    (@alishahcheraghi)


    Hi,
    Rank Math is perfect and very nice but it shows schema date error when I use any local date plugin in any persian wordpress website.

    https://prntscr.com/v9yfge
    https://prntscr.com/v9yfhy

    The code causing the issue
    I solved the issue in this file
    includes\replace-variables\class-post-variables.php
    By modifying this line
    line 354:
    return mysql2date( $format, $this->args->post_date, true );
    To
    return mysql2date( $format, $this->args->post_date, false);
    and
    line 378:
    return mysql2date( $format, $this->args->post_modified, true );
    To
    return mysql2date( $format, $this->args->post_modified, false );

    https://prntscr.com/v9yfhj
    https://prntscr.com/v9yfhd

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘persian jalali date’ is closed to new replies.