mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #515 from DrMartinGonzo/patch-2
Fix bad date formatting
This commit is contained in:
commit
374c3e2893
@ -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'));
|
||||||
|
Loading…
Reference in New Issue
Block a user