mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-05 20:57:49 +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();
|
||||
* </code>
|
||||
*
|
||||
* @param string $format Date format
|
||||
* @return string
|
||||
*/
|
||||
public static function date() {
|
||||
return Date::format(Pages::$page['date'], 'Y-m-d');
|
||||
public static function date($format = 'Y-m-d') {
|
||||
return Date::format(Pages::$page['date'], $format);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user