Merge pull request #515 from DrMartinGonzo/patch-2

Fix bad date formatting
This commit is contained in:
Dylan Wagstaff 2018-03-20 14:16:03 +13:00 committed by GitHub
commit 374c3e2893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -630,12 +630,12 @@ class BlogPost extends Page
return Controller::join_links( return Controller::join_links(
$this->Parent()->Link('archive'), $this->Parent()->Link('archive'),
$date->format('Y'), $date->format('Y'),
$date->format('m'), $date->format('M'),
$date->format('d') $date->format('d')
); );
} }
return Controller::join_links($this->Parent()->Link('archive'), $date->format('Y'), $date->format('m')); return Controller::join_links($this->Parent()->Link('archive'), $date->format('Y'), $date->format('M'));
} }
return Controller::join_links($this->Parent()->Link('archive'), $date->format('Y')); return Controller::join_links($this->Parent()->Link('archive'), $date->format('Y'));