diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-06-27 18:29:30 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-06-27 18:29:30 -0400 |
commit | 3265812833f084a3bcc0734feffd5e7348b25c4e (patch) | |
tree | bb818c2faebecfcffbab3391a3e2c8182e562d39 /lib/util.php | |
parent | aa8dac17d34414b86642715fc1c1e34d8aee2de9 (diff) |
show exact date when needed
darcs-hash:20080627222930-84dde-e54a369d91060b7ff2559af9ff08735b2eec43d9.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util.php b/lib/util.php index c60dc907f..bdebbf847 100644 --- a/lib/util.php +++ b/lib/util.php @@ -731,7 +731,7 @@ function common_date_string($dt) { $diff = $now - $t; if ($now < $t) { # that shouldn't happen! - return common_simple_date($dt); + return common_exact_date($dt); } else if ($diff < 60) { return _t('a few seconds ago'); } else if ($diff < 92) { @@ -753,11 +753,11 @@ function common_date_string($dt) { } else if ($diff < 480 * 24 * 3600) { return _t('about a year ago'); } else { - return common_simple_date($dt); + return common_exact_date($dt); } } -function common_simple_date($dt) { +function common_exact_date($dt) { $t = strtotime($dt); return date(DATE_RFC822, $t); } |