Update of /cvsroot/phpweather/phpweather/output
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19082/output
Modified Files:
pw_text.php
Log Message:
A selection of fixes, thanks all
Index: pw_text.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/output/pw_text.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- pw_text.php 13 Jan 2005 23:17:39 -0000 1.25
+++ pw_text.php 9 Mar 2006 18:32:10 -0000 1.26
@@ -637,7 +637,7 @@
function print_pretty_time($time) {
$minutes_old = round((time() - $time)/60);
if ($minutes_old > 60) {
- $hours = round((time() - $time)/3600);
+ $hours = floor((time() - $time)/3600);
$minutes = $minutes_old % 60;
if ($minutes < 1) {
$minutes = '';
|