1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not Planned Xenforo 1.4 Sitemap Timezone Problem (Also changefreq and priority)

Discussion in 'Closed Suggestions' started by maxicep, Nov 3, 2014.

  1. maxicep

    maxicep Active Member


    When i look the my forum sitemaps which created by xenforo 1.4, sitemaps contain different lastmod times between forum time. Because, timezone is different.

    For example;

    Sitemap line:
    <url><loc>http://www.xyz.com/forum/thread/test-thread.924720/</loc><lastmod>2014-11-03T09:14:40 00:00</lastmod></url>

    But when i look this thread; IT's last post time on thread is : 11:14:40

    We are from Turkey and our timezone is GMT +2 so it should be right date and time also lastmod string should be include +02:00. (Not +00:00)

    How can i fix this?

    In forum general date settings, our timezone gmt +2 and in forum, no problem about time or date.

    Also, when i look the sitemap lines, i cant see changefreq and priority lines for URL's.
    But /library/xenforo/model/Sitemap.php including these parameters if you look.

    P.S: I use xenforo support ticket but development team dont help me about that, they say "this is standart model, we cant edit or configure it" it is so absurd...
  2. Mike

    Mike XenForo Developer Staff Member

    The sitemap is for machines, not humans. Further, standardizing on UTC/GMT does resolve issues with different time zones being used at different times of the year or with different last mod times.

    This is expected, you would need to modify the codes to suit your needs.
  3. Martok

    Martok Well-Known Member

  4. Slavik

    Slavik XenForo Moderator Staff Member

    Why would you wish to alter it? Changing to your forums timezone doesn't serve any purpose.
  5. maxicep

    maxicep Active Member

    You are doing sitemap function to forum software but lastmod time is standart gmt +0 time also there are no changefreq and priority variables. Perfect!

    I have index problem after i switch to xenforo 1.3 to 1.4, our threads indexing about a few hours later now (before on xenforo 1.3 i was using xml sitemap plugin and all of our threads indexing as soon as possible about 1-2min)

    So, i think sitemap timezone settings + changefreq and priority parameters may be important. If they are nothing, so why these variables on there http://www.sitemaps.org/protocol.html

Share This Page