Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Sitemap timestamp format #15229

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Fix Sitemap timestamp format #15229

merged 1 commit into from
Feb 1, 2024

Conversation

MikeAlhayek
Copy link
Member

Fix #15172

@MikeAlhayek MikeAlhayek enabled auto-merge (squash) February 1, 2024 21:45
@@ -162,7 +161,7 @@ private static void PopulateLastMod(ContentItem contentItem, XElement url)
if (contentItem.ModifiedUtc.HasValue)
{
var lastMod = new XElement(_namespace + "lastmod");
lastMod.Add(contentItem.ModifiedUtc.GetValueOrDefault().ToString("yyyy-MM-ddTHH:mm:sszzz"));
lastMod.Add(contentItem.ModifiedUtc.GetValueOrDefault().ToString("yyyy-MM-ddTHH:mm:sszzz", CultureInfo.InvariantCulture));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why it doesn't respect the current culture?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I respects the current culture, that's the issue. Check the issue linked issue.

@MikeAlhayek MikeAlhayek merged commit 77981f2 into main Feb 1, 2024
5 checks passed
@MikeAlhayek MikeAlhayek deleted the ma/sitemap-timestamp branch February 1, 2024 21:52
urbanit pushed a commit to urbanit/OrchardCore that referenced this pull request Mar 18, 2024
@MikeAlhayek
Copy link
Member Author

/backport to release/1.8.3

Copy link
Contributor

github-actions bot commented Aug 5, 2024

Started backporting to release/1.8.3: https://github.com/OrchardCMS/OrchardCore/actions/runs/10253217963

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sitemap.xml uses invalid datetime separator
3 participants