Format the date/time according to the localization in the custom projects/judges and judges/projects reports

This commit is contained in:
james 2010-04-06 18:49:49 +00:00
parent 123cee67d3
commit 6d8c74e8ae
2 changed files with 4 additions and 4 deletions

View File

@ -140,10 +140,10 @@
while($r=mysql_fetch_object($q)) while($r=mysql_fetch_object($q))
{ {
if($show_date) if($show_date)
$timeslot=$r->date." "; $timeslot=format_date($r->date)." ";
else else
$timeslot=""; $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 $projq=mysql_query("SELECT
projects.projectnumber, projects.projectnumber,

View File

@ -137,10 +137,10 @@
while($r=mysql_fetch_object($q)) while($r=mysql_fetch_object($q))
{ {
if($show_date) if($show_date)
$timeslot=$r->date." "; $timeslot=format_date($r->date)." ";
else else
$timeslot=""; $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); $table['data'][]=array($timeslot, $r->name);
} }