Post Date Provide short Date I want it to be ISO 8601 Format

#208573
  • Resolved Anonymous
    Rank Math free

    Can I convert the Published Date in the Job posting Schema in ISO 8601 Format because it’s missing time in Current senario

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math support today.

    Can you please confirm if you are referring to this date in the Job Posting schema? job

    We are looking forward to helping you.

    Anonymous
    Rank Math free

    yes i am using it on Job Posting Schema Recently I noticed it’s returning a short time which is not relevant for job Posting because people always a fress jobs and
    when I posted a job in day 15.00 PM it’s show me 13-15 Hours Ago
    which is not very useful

    Hello,

    Thank you for keeping in touch with us.

    In this case, this can be done by having a PRO version of Rank Math and you may need to create a custom variable to insert it into the “Date Posted” field in your JobPosting Schema. You can follow the filter provided in your last ticket and enable the advanced Schema builder provided by the PRO version.
    schema

    If using a PRO version is not an option, then you can make use of this filter to modify your schema:

    /**
     * Collect data to output in JSON-LD.
     *
     * @param array  $unsigned An array of data to output in json-ld.
     * @param JsonLD $unsigned JsonLD instance.
     */
    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	return [];
    }, 99, 2);

    You may refer more here: https://rankmath.com/kb/filters-hooks-api-developer/#extend-json-ld-data

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Post Date Provide short Date I want it to be ISO 8601 Format’ is closed to new replies.