Skip to content

Commit

Permalink
Merge pull request #385 from sekjal/Issue384
Browse files Browse the repository at this point in the history
ENHANCEMENT Format dates in Blog Posts gridfield based on user preferences
  • Loading branch information
Damian Mooyman committed Mar 7, 2016
2 parents 84efcf1 + 86f5295 commit 7a59c13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/forms/gridfield/GridFieldBlogPostState.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function getColumnContent($gridField, $record, $columnName)
'<i class="btn-icon gridfield-icon btn-icon-pencil"></i> Saved as Draft on {date}',
'State for when a post is saved.',
array(
'date' => $lastEdited->Nice(),
'date' => $lastEdited->FormatFromSettings(),
)
);
}
Expand All @@ -50,7 +50,7 @@ public function getColumnContent($gridField, $record, $columnName)
'<i class="gridfield-icon blog-icon-timer"></i> Publish at {date}',
'State for when a post is published.',
array(
'date' => $publishDate->Nice(),
'date' => $publishDate->FormatFromSettings(),
)
) . $modifiedLabel;
}
Expand All @@ -60,7 +60,7 @@ public function getColumnContent($gridField, $record, $columnName)
'<i class="btn-icon gridfield-icon btn-icon-accept"></i> Published on {date}',
'State for when a post is published.',
array(
'date' => $publishDate->Nice(),
'date' => $publishDate->FormatFromSettings(),
)
) . $modifiedLabel;
}
Expand Down

0 comments on commit 7a59c13

Please sign in to comment.