1
0
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:
Awilum
2012-09-27 21:32:18 +03:00
parent 9a013d2c50
commit 7ad68828a9

View File

@@ -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);
}