Support » Plugin: WordPress Membership Plugin - Restrict Content » i18n bug change date format

  • Resolved seifzadeh

    (@seifzadeh)


    Hi
    im traced rcp-v3, then find the bug on saved datetime to database
    if persian users or others languages use the custome date show plugin like the
    wp-parsi, on the saved expiration_date member to database changed format and failed data insert to database,
    File: include/databas/engine/class-column.php:788
    $value = date_i18n( 'Y-m-d H:i:s', strtotime( $value ), true );
    the line changed date from:2019-08-01T17:41:22 to:۱۳۹۸-۰۵-۱۰ ۱۷:۴۱:۲۲
    on the enable i18n function.
    please fixed not need the change date format on saved to database.

    • This topic was modified 1 year ago by seifzadeh.
Viewing 1 replies (of 1 total)
  • Plugin Author Ashley

    (@nosegraze)

    Hi there,

    This has been fixed in version 3.1.1.

    In the future please get in touch with our support team via this page: https://restrictcontentpro.com/support/ This forum is for support with the free Restrict Content plugin only — not Restrict Content Pro.

Viewing 1 replies (of 1 total)
  • The topic ‘i18n bug change date format’ is closed to new replies.