From 91cbf39f61ca275d957dd8cf3c1f5ca49f11731d Mon Sep 17 00:00:00 2001 From: james Date: Tue, 19 Jan 2010 03:42:25 +0000 Subject: [PATCH] Use localized dates/times on judges pages --- admin/judges_teams_projects.php | 12 ++++++------ admin/judges_teams_timeslots.php | 12 ++++++------ admin/judges_timeslots.php | 10 +++++----- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/admin/judges_teams_projects.php b/admin/judges_teams_projects.php index 4288bbf4..ad1b3b3a 100644 --- a/admin/judges_teams_projects.php +++ b/admin/judges_teams_projects.php @@ -286,10 +286,10 @@ if( ($action=="edit" || $action=="assign" ) && $edit) echo ""; if($show_date) - echo "$r->date "; - echo substr($r->starttime,0,-3); + echo format_date($r->date); + echo format_time($r->starttime); echo " - "; - echo substr($r->endtime,0,-3); + echo format_time($r->endtime); echo ""; echo ""; @@ -391,11 +391,11 @@ if( ($action=="edit" || $action=="assign" ) && $edit) echo ""; if($show_date) - echo "$r->date "; + echo format_date($r->date); - echo substr($r->starttime,0,-3); + echo format_time($r->starttime); echo " - "; - echo substr($r->endtime,0,-3); + echo format_time($r->endtime); echo ""; echo ""; diff --git a/admin/judges_teams_timeslots.php b/admin/judges_teams_timeslots.php index 88ed5823..f98219ef 100644 --- a/admin/judges_teams_timeslots.php +++ b/admin/judges_teams_timeslots.php @@ -152,9 +152,9 @@ function checkinvert(what) while($rr = mysql_fetch_object($qq)) { echo ""; echo "id}\" />"; - if($show_date) echo "{$r->date}"; - echo "".substr($rr->starttime,0,-3).""; - echo "".substr($rr->endtime,0,-3).""; + if($show_date) echo "".format_date($r->date).""; + echo "".format_time($rr->starttime).""; + echo "".format_time($rr->endtime).""; echo "\n"; } } @@ -224,10 +224,10 @@ function checkinvert(what) { echo ""; if($show_date) - echo "$r->date "; - echo substr($r->starttime,0,-3); + echo format_date($r->date); + echo format_time($r->starttime); echo " - "; - echo substr($r->endtime,0,-3); + echo format_time($r->endtime); echo "  id\">"; echo ""; echo "
"; diff --git a/admin/judges_timeslots.php b/admin/judges_timeslots.php index cd9cabbe..28de931e 100644 --- a/admin/judges_timeslots.php +++ b/admin/judges_timeslots.php @@ -359,11 +359,11 @@ $qq = mysql_query("SELECT * FROM judges_timeslots WHERE round_id='{$r->id}' ORDER BY `date`,`starttime`"); $c = mysql_num_rows($qq) +1; - echo "$r->date"; - echo "".substr($r->starttime,0,-3)."
"; + echo "".format_date($r->date).""; + echo "".format_time($r->starttime)."
"; echo ""; - echo "".substr($r->endtime,0,-3).""; + echo "".format_time($r->endtime).""; echo "{$r->name} (".i18n($round_str[$r->type]).")"; echo " "; echo "id}\">"; @@ -379,8 +379,8 @@ while($rr = mysql_fetch_object($qq)) { echo ""; // echo ""; - echo "".substr($rr->starttime,0,-3).""; - echo "".substr($rr->endtime,0,-3).""; + echo "".format_time($rr->starttime).""; + echo "".format_time($rr->endtime).""; echo "".i18n($round_str[$rr->type])."";