GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removing warnings
[mirrors/Kyberia-bloodline.git]
/
wwwroot
/
inc
/
smarty
/
node_methodz
/
modifier.epochal_date.php
diff --git
a/wwwroot/inc/smarty/node_methodz/modifier.epochal_date.php
b/wwwroot/inc/smarty/node_methodz/modifier.epochal_date.php
index 20871544ad8dc839d8358aa4c067b04add52e7ee..b6a45f9ee2481ac6482a10fee81b8b5ac16ab2a1 100644
(file)
--- a/
wwwroot/inc/smarty/node_methodz/modifier.epochal_date.php
+++ b/
wwwroot/inc/smarty/node_methodz/modifier.epochal_date.php
@@
-11,9
+11,10
@@
* Examples: {$smarty.now|epochal_date}
* -------------------------------------------------------------
*/
* Examples: {$smarty.now|epochal_date}
* -------------------------------------------------------------
*/
-function smarty_modifier_epochal_date($date) {
+function smarty_modifier_epochal_date($d) {
+ $date=smarty_make_timestamp($d);
$year=date("Y",$date);
$year=date("Y",$date);
- echo str_replace($year,$year-1970,date("d/m/Y",$date));
- return $date;
+ return str_replace($year,$year-1970,date("d/m/Y",$date));
}
}
+
?>
\ No newline at end of file
?>
\ No newline at end of file
This page took
0.132451 seconds
and
4
git commands to generate.