Sitemap Timezone miss match

#809983
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    Please note that this is the default behavior of the plugin.

    This was changed some time ago to update the actual date and not the timezone, so you’ll see that your time in the sitemap already includes the timezone offset correctly added to the time from UTC.

    Looking forward to helping you.

    But I want IST timezone in sitemap also.

    Hello,

    There is no option to do that. You will have to make changes directly to the plugin files. You can edit the wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-timezone.php

    And change the UTC with your preferred timezone on line 40. Since you want UTC +5:30, the code should be like this:

    $date_time = new DateTime( $datetime_string, new DateTimeZone( '+5:30' ) );
    

    Please note that these changes will be overridden by each update and you will have to make the changes again.

    Hope that helps. Let us know if you need any other assistance.

    Thanks, One More Query.

    I’ve been using AMP Plugin for my news website so far. But, now I want to remove AMP from my website. So what should I keep in mind so that there is no impact on my site’s SEO and traffic. And what steps should I consider during deactivate the AMP so that there are no errors in the Google Search Console. Thanks in advance

    Hello,

    You should redirect the AMP URLs to the non-AMP version after deactivating the AMP plugin. Here is a guide that will help you with that: https://rankmath.com/kb/redirect-all-amp-pages-to-non-amp-pages/

    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 5 replies - 1 through 5 (of 5 total)

The ticket ‘Sitemap Timezone miss match’ is closed to new replies.