Support » 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 5 months, 2 weeks ago by seifzadeh.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.