From 6d8c74e8aefc1d13a4ea6e4f6c94c9c15e36538f Mon Sep 17 00:00:00 2001 From: james Date: Tue, 6 Apr 2010 18:49:49 +0000 Subject: [PATCH] Format the date/time according to the localization in the custom projects/judges and judges/projects reports --- admin/reports_judges_teams_projects.php | 4 ++-- admin/reports_projects_judges_teams.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/reports_judges_teams_projects.php b/admin/reports_judges_teams_projects.php index ec6fe69..572a231 100644 --- a/admin/reports_judges_teams_projects.php +++ b/admin/reports_judges_teams_projects.php @@ -140,10 +140,10 @@ while($r=mysql_fetch_object($q)) { if($show_date) - $timeslot=$r->date." "; + $timeslot=format_date($r->date)." "; else $timeslot=""; - $timeslot.=substr($r->starttime,0,-3)." - ".substr($r->endtime,0,-3); + $timeslot.=format_time($r->starttime)." - ".format_time($r->endtime); $projq=mysql_query("SELECT projects.projectnumber, diff --git a/admin/reports_projects_judges_teams.php b/admin/reports_projects_judges_teams.php index fc62422..f20fe57 100644 --- a/admin/reports_projects_judges_teams.php +++ b/admin/reports_projects_judges_teams.php @@ -137,10 +137,10 @@ while($r=mysql_fetch_object($q)) { if($show_date) - $timeslot=$r->date." "; + $timeslot=format_date($r->date)." "; else $timeslot=""; - $timeslot.=substr($r->starttime,0,-3)." - ".substr($r->endtime,0,-3); + $timeslot.=format_time($r->starttime)." - ".format_time($r->endtime); $table['data'][]=array($timeslot, $r->name); }