diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-09-29 22:55:15 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-09-29 22:55:15 +0200 |
commit | 9b8a50224bd9ebd1f37e7cf969d61e4a8edd0417 (patch) | |
tree | 4e3f37a8ee6b0ebe7afb8fafbe8c93180cb6b593 /stupid_template_engine.php | |
parent | b28851a117de5a4a92a5c50b1f9738a6b6181d8d (diff) | |
download | ste-9b8a50224bd9ebd1f37e7cf969d61e4a8edd0417.tar.gz ste-9b8a50224bd9ebd1f37e7cf969d61e4a8edd0417.tar.bz2 ste-9b8a50224bd9ebd1f37e7cf969d61e4a8edd0417.zip |
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.)
Diffstat (limited to 'stupid_template_engine.php')
-rw-r--r-- | stupid_template_engine.php | 2 |
1 files changed, 1 insertions, 1 deletions
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"]); } } |