I am creating an app that will automatically update sitemap.xml
each time new content is added to, or updated on the site.
According to Google's best practices the <lastmod></lastmod>
tag should be formatted as follows:
<lastmod>2011-06-27T19:34:00+01:00</lastmod>
My question concerns the time formatting itself. I understand the 2011-06-27T19:34:00
part. What I do not understand is the +01:00
, which I am assuming is the +/- UTC
.
Is this a correct assumption?
My Time Zone Table looks like this:
So if the site was based in #4 Afghanistan the correct time would be:
2011-06-27T19:34:00+04:00
And if the site was based in #6 Alaska Standard Time the correct time would be: 2011-06-27T19:34:00-09:00
Is my assumption correct or am I not correctly understanding the +01:00
?
sitemaps,org
and realized the time was optional within the option of<lastmod>
but i figured if my assumption of theUTC +/-
was correct and the fact that I already had the info in the db table why not use it. I did not want to open a can of worms and have to go back and reprogram if my assumption was incorrect, which you have clarified for me... thanks again for taking the time for your detailed answer. – Consignee