new epoch
authorDaniel Hromada <hromi@Aphrodité.(none)>
Sun, 12 Dec 2010 23:00:19 +0000 (00:00 +0100)
committerDaniel Hromada <hromi@Aphrodité.(none)>
Sun, 12 Dec 2010 23:00:19 +0000 (00:00 +0100)
wwwroot/inc/smarty/node_methodz/modifier.epochal_date.php

index 20871544ad8dc839d8358aa4c067b04add52e7ee..b6a45f9ee2481ac6482a10fee81b8b5ac16ab2a1 100644 (file)
 * 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
This page took 0.144062 seconds and 4 git commands to generate.