mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #385 from sekjal/Issue384
ENHANCEMENT Format dates in Blog Posts gridfield based on user preferences
This commit is contained in:
commit
7a59c13b3f
@ -34,7 +34,7 @@ class GridFieldBlogPostState extends GridFieldSiteTreeState
|
||||
'<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(),
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -50,7 +50,7 @@ class GridFieldBlogPostState extends GridFieldSiteTreeState
|
||||
'<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;
|
||||
}
|
||||
@ -60,7 +60,7 @@ class GridFieldBlogPostState extends GridFieldSiteTreeState
|
||||
'<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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user