[LinksOS CVS Commit]website/content time.php,1.3,1.4
Status: Inactive
Brought to you by:
terencevs
|
From: <ke...@to...> - 2003-01-12 23:51:35
|
Update of /cvsroot/linksos/website/content In directory router-internal.tossell.net:/tmp/cvs-serv5969/content Modified Files: time.php Log Message: Title: Negative Hours Changes: Added case where hour is negative. Effects: Negative hour $t will be changed to 24+$t. a=kennyt Index: time.php =================================================================== RCS file: /cvsroot/linksos/website/content/time.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** time.php 2 Jan 2003 01:40:56 -0000 1.3 --- time.php 12 Jan 2003 23:51:31 -0000 1.4 *************** *** 24,28 **** for ( $t = -12; $t < 13; $t++ ) { $tzd_people = mysql_query('SELECT unixname,fullname FROM linksos_people WHERE gmt = ' . $t); ! echo '<td valign="top"' . (is_integer($t/2) ? 'bgcolor="#cccccc"' : '' ) . '><b>' . ( ($gmt + $t) < 24 ? ($gmt+$t) : ( ($gmt+$t)-24 ) ) . '</b><p />'; while ( $tz_person = mysql_fetch_row($tzd_people) ) { echo $tz_person[0] . '<br>'; --- 24,28 ---- for ( $t = -12; $t < 13; $t++ ) { $tzd_people = mysql_query('SELECT unixname,fullname FROM linksos_people WHERE gmt = ' . $t); ! echo '<td valign="top"' . (is_integer($t/2) ? 'bgcolor="#cccccc"' : '' ) . '><b>' . ( ($gmt + $t) < 24 ? ((($gmt+$t) < 0 ? 24+($gmt+$t) : ($gmt+$t)) ) : ( ($gmt+$t)-24 ) ) . '</b><p />'; while ( $tz_person = mysql_fetch_row($tzd_people) ) { echo $tz_person[0] . '<br>'; |