commit a7f75e5f15f5d3180fb219401cc9a4873dd54df4
parent b3efd88e82c34f2624941957411b94420949d23b
Author: dankert <devnull@localhost>
Date: Sun, 8 Apr 2007 17:17:34 +0200
Neue Einstellung "human_date_format" ber?cksichtigen.
Diffstat:
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/themes/default/include/html/date.inc.php b/themes/default/include/html/date.inc.php
@@ -1,5 +1,13 @@
<?php
- $time = $attr_date;
+ global $conf;
+ $time = $attr_date;
+
+ if ( $time==0)
+ echo lang('GLOBAL_UNKNOWN');
+ elseif ( !$conf['interface']['human_date_format'] )
+ echo date(lang('DATE_FORMAT'),$time);
+ else
+ {
$sekunden = time()-$time;
$minuten = intval($sekunden/60);
@@ -9,9 +17,11 @@
$jahre = intval($monate /12);
echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">';
-
+
if ( $time==0)
echo lang('GLOBAL_UNKNOWN');
+ elseif ( !$conf['interface']['human_date_format'] )
+ echo date(lang('DATE_FORMAT'),$time);
elseif ( $sekunden == 1 )
echo $sekunden.' '.lang('GLOBAL_SECOND');
elseif ( $sekunden < 60 )
@@ -43,4 +53,5 @@
echo $jahre.' '.lang('GLOBAL_YEARS');
echo '</span>';
+ }
?>
\ No newline at end of file