mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 09:05:58 +00:00
Fix bad date formatting
`m` returns minute in hour as seen here : http://userguide.icu-project.org/formatparse/datetime
This commit is contained in:
parent
049e77227e
commit
b483446a45
@ -630,12 +630,12 @@ class BlogPost extends Page
|
||||
return Controller::join_links(
|
||||
$this->Parent()->Link('archive'),
|
||||
$date->format('Y'),
|
||||
$date->format('m'),
|
||||
$date->format('M'),
|
||||
$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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user