From 2dd5fd85964cbe65c665bdf1f8b2b49850359659 Mon Sep 17 00:00:00 2001 From: Thomas Portelange Date: Fri, 15 Jul 2016 14:31:11 +0200 Subject: [PATCH] remove i18n formatting in links the getArchiveMonth and getArchiveYear only accepts number in Blog.php. Removing i18n formatting restore the functionnality. --- code/widgets/BlogArchiveWidget.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/widgets/BlogArchiveWidget.php b/code/widgets/BlogArchiveWidget.php index 07ecd7c..66cdd45 100644 --- a/code/widgets/BlogArchiveWidget.php +++ b/code/widgets/BlogArchiveWidget.php @@ -113,12 +113,12 @@ class BlogArchiveWidget extends Widget $date->setValue($post->PublishDate); if ($this->ArchiveType == 'Yearly') { - $year = $date->FormatI18N("%Y"); + $year = $date->Format("Y"); $month = null; $title = $year; } else { - $year = $date->FormatI18N("%Y"); - $month = $date->FormatI18N("%m"); + $year = $date->Format("Y"); + $month = $date->Format("m"); $title = $date->FormatI18N("%B %Y"); }