Skip to content

Commit

Permalink
Merge branch '3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Wagstaff committed Dec 6, 2018
2 parents 5a355f2 + 23ea092 commit 9b85524
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Model/BlogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,9 @@ public function getFilterDescription()
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(
Expand Down
4 changes: 2 additions & 2 deletions templates/SilverStripe/Blog/Model/Layout/Blog.ss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b85524

Please sign in to comment.