mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-05 12:48:00 +02:00
Pages Plugin: update date() method - add ability to set date format
This commit is contained in:
@@ -267,10 +267,11 @@
|
|||||||
* echo Page::date();
|
* echo Page::date();
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
|
* @param string $format Date format
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function date() {
|
public static function date($format = 'Y-m-d') {
|
||||||
return Date::format(Pages::$page['date'], 'Y-m-d');
|
return Date::format(Pages::$page['date'], $format);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user