From d5b35cf36c6478a873e0d3d8c820fdc73bc1a0cd Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Thu, 15 Feb 2018 11:22:00 +1300 Subject: [PATCH] FIX Use CLDR date format in sitemap template --- .../Wilr/GoogleSitemaps/Control/GoogleSitemapController.ss | 2 +- .../GoogleSitemaps/Control/GoogleSitemapController_sitemap.ss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/Wilr/GoogleSitemaps/Control/GoogleSitemapController.ss b/templates/Wilr/GoogleSitemaps/Control/GoogleSitemapController.ss index 69fd5fa..064a91a 100644 --- a/templates/Wilr/GoogleSitemaps/Control/GoogleSitemapController.ss +++ b/templates/Wilr/GoogleSitemaps/Control/GoogleSitemapController.ss @@ -3,6 +3,6 @@ <% loop Sitemaps %> {$AbsoluteBaseURL}sitemap.xml/sitemap/$ClassName/$Page.xml - <% if LastModified %>$LastModified<% end_if %> + <% if $LastModified %>$LastModified<% end_if %> <% end_loop %> diff --git a/templates/Wilr/GoogleSitemaps/Control/GoogleSitemapController_sitemap.ss b/templates/Wilr/GoogleSitemaps/Control/GoogleSitemapController_sitemap.ss index ebcc2e2..e87b70a 100644 --- a/templates/Wilr/GoogleSitemaps/Control/GoogleSitemapController_sitemap.ss +++ b/templates/Wilr/GoogleSitemaps/Control/GoogleSitemapController_sitemap.ss @@ -4,7 +4,7 @@ <% loop $Items %> $AbsoluteLink - <% if $LastEdited %>$LastEdited.Format(YYYY-MM-dd)<% end_if %> + <% if $LastEdited %>$LastEdited.Format("y-MM-dd'T'HH:mm:ss")<% end_if %> <% if $ChangeFrequency %>$ChangeFrequency<% end_if %> <% if $GooglePriority %>$GooglePriority<% end_if %>