• Resolved milez

    (@milez)


    I have run into this problem with other sitemap plugins. The last modified time is always 4 hrs ahead as it is using UTC time. I have tried to override this in bwp-simple-gxs.php with this:

    date_default_timezone_set('America/New_York');

    …but no luck…

    Anyone have any idea what I can try?

Viewing 1 replies (of 1 total)
  • Plugin Author Khang Minh

    (@oddoneout)

    Hi again milez :), are you still using BWP Recent Comments?

    I will add an option to the Generator tab in the next version then, but if you are desperate about correct local time, you can open class-bwp-gxs-module.php and then change this (line 129):

    return gmdate('Y-m-d\TH:i:s' . '+00:00', (int) $lastmod);

    to this:

    return date('Y-m-d\TH:i:s' . '+00:00', (int) $lastmod);

    Make sure you have date_default_timezone_set('America/New_York'); in your theme’s functions.php, flush the cache and refresh your sitemaps. See if that works :).

Viewing 1 replies (of 1 total)

The topic ‘Last Modified Date is Incorrect’ is closed to new replies.