version 1.68.2.1, 2012/05/12 03:52:02
|
version 1.68.2.2, 2012/12/10 23:18:47
|
Line 730 sub html_non_essay_results {
|
Line 730 sub html_non_essay_results {
|
} |
} |
} |
} |
} else { |
} else { |
@values = map { $response->{$_}; } @$headers; |
foreach my $original_header (@$headers) { |
|
if ($original_header eq 'Time') { |
|
push(@values,&Apache::lonlocal::locallocaltime($response->{$original_header})); |
|
} else { |
|
# A normal column |
|
push(@values,$response->{$original_header}); |
|
} |
|
} |
} |
} |
my $td = '<td valign="top">'; |
my $td = '<td valign="top">'; |
my $str = $td.join('</td>'.$td,@values).'</td>'; |
my $str = $td.join('</td>'.$td,@values).'</td>'; |
Line 1236 sub prepare_csv_output {
|
Line 1243 sub prepare_csv_output {
|
sub csv_format_item { |
sub csv_format_item { |
my ($item,$type) = @_; |
my ($item,$type) = @_; |
if ($type eq 'Time') { |
if ($type eq 'Time') { |
$item = localtime($item); |
$item = &Apache::lonlocal::locallocaltime($item); |
} |
} |
$item =&Apache::loncommon::csv_translate($item); |
$item =&Apache::loncommon::csv_translate($item); |
return $item; |
return $item; |