X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Fmodifier.epochal_date.php;h=b6a45f9ee2481ac6482a10fee81b8b5ac16ab2a1;hb=45fe16f2bfbe95069118ca82222113023754db0e;hp=20871544ad8dc839d8358aa4c067b04add52e7ee;hpb=9b238bbd8e70589170c73f63b811f0aefa880e9c;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/node_methodz/modifier.epochal_date.php b/wwwroot/inc/smarty/node_methodz/modifier.epochal_date.php index 2087154..b6a45f9 100644 --- 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} * ------------------------------------------------------------- */ -function smarty_modifier_epochal_date($date) { +function smarty_modifier_epochal_date($d) { + $date=smarty_make_timestamp($d); $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