From 96098ce3bedb101a1d4f497f99bc06ba05068537 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 8 Jul 2001 14:06:21 +0000 Subject: - cloud.module: + made 1 few visual change. --- modules/cloud.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/cloud.module b/modules/cloud.module index fc3667a7c..11d92100b 100644 --- a/modules/cloud.module +++ b/modules/cloud.module @@ -103,9 +103,9 @@ function cloud_list() { $result = db_query("SELECT * FROM site ORDER BY timestamp DESC LIMIT 100"); while ($site = db_fetch_object($result)) { - if ($date != date("g A", $site->timestamp)) { - $date = date("g A", $site->timestamp); - $output .= "

$date:"; + if ($hour != floor((time() - $site->timestamp) / 3600)) { + $hour = floor((time() - $site->timestamp) / 3600); + $output .= "

Updated ". format_plural($hour, "hour", "hours") ." ago :"; } $output .= "
". format_url($site->url, $site->title); } -- cgit v1.2.3