mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #563 from shaunjc/sjc/3.0-date-fix
FIX: Update Blog archive date formats for SS4
This commit is contained in:
commit
17ed46cddd
@ -396,9 +396,9 @@ class BlogController extends PageController
|
||||
if ($this->owner->getArchiveDay()) {
|
||||
$date = $this->owner->getArchiveDate()->Nice();
|
||||
} elseif ($this->owner->getArchiveMonth()) {
|
||||
$date = $this->owner->getArchiveDate()->format('F, Y');
|
||||
$date = $this->owner->getArchiveDate()->format('MMMM, y');
|
||||
} else {
|
||||
$date = $this->owner->getArchiveDate()->format('Y');
|
||||
$date = $this->owner->getArchiveDate()->format('y');
|
||||
}
|
||||
|
||||
$items[] = _t(
|
||||
|
@ -9,9 +9,9 @@
|
||||
<% if $ArchiveDay %>
|
||||
$ArchiveDate.Nice
|
||||
<% else_if $ArchiveMonth %>
|
||||
$ArchiveDate.format('F, Y')
|
||||
$ArchiveDate.format('MMMM, y')
|
||||
<% else %>
|
||||
$ArchiveDate.format('Y')
|
||||
$ArchiveDate.format('y')
|
||||
<% end_if %>
|
||||
<% else_if $CurrentTag %>
|
||||
<%t SilverStripe\\Blog\\Model\\Blog.Tag 'Tag' %>: $CurrentTag.Title
|
||||
|
Loading…
Reference in New Issue
Block a user