From 9b8a50224bd9ebd1f37e7cf969d61e4a8edd0417 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Thu, 29 Sep 2011 22:55:15 +0200 Subject: ste:date now uses strftime Because strftime is more flexible: You can... * ...put arbitrary text inside the format * ...manipulate it by set the locale (i.e. set language-specific month names etc.) --- stupid_template_engine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stupid_template_engine.php') diff --git a/stupid_template_engine.php b/stupid_template_engine.php index 2be4f79..860067b 100644 --- a/stupid_template_engine.php +++ b/stupid_template_engine.php @@ -1282,7 +1282,7 @@ class STEStandardLibrary static public function date($ste, $params, $sub) { - return @date($sub($ste), empty($params["timestamp"]) ? @time() : (int) $params["timestamp"]); + return @strftime($sub($ste), empty($params["timestamp"]) ? @time() : (int) $params["timestamp"]); } } -- cgit v1.2.3-70-g09d2