Module

Developer
Supported

Sitemap Module

ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5

Back to this add-on's main page
View Other Add-ons From PutYourLightsOn

     

You must be logged in to post.

Timezone Offset

General

mpsteel
mpsteel

I was noticing my most recent posts were not displaying at the top of the sitemap and it turned out to be a discrepancy with the timezone offset. I added a piece of code myself to ours, but not sure if you are aware of this.

PutYourLightsOn
# 1
Developer
PutYourLightsOn

would be happy to see what code you added…

mpsteel
# 2
mpsteel

Around line 175 of mod.sitemap.php

$entry['entry_date'strtotime('-5 hours'$entry['entry_date']); 

I just hard coded in the offset, haven’t looked up the EE preference look up yet.

PutYourLightsOn
# 3
Developer
PutYourLightsOn

ok i see, i’ll add the timezone offset in next release

mpsteel
# 4
mpsteel

Cool, thanks.