version 1.68, 2012/05/03 11:21:33
|
version 1.69, 2012/10/12 14:08:42
|
Line 732 sub html_non_essay_results {
|
Line 732 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 1238 sub prepare_csv_output {
|
Line 1245 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; |