--- loncom/interface/loncommon.pm 2001/07/30 22:24:34 1.4
+++ loncom/interface/loncommon.pm 2001/09/13 19:59:33 1.5
@@ -32,12 +32,24 @@ sub get_previous_attempt {
for ($version=1;$version<=$returnhash{'version'};$version++) {
$prevattempts.='
Attempt '.$version.' | ';
map {
- $prevattempts.=''.$returnhash{$version.':'.$_}.' | ';
+ my $value;
+ if ($_ =~ /timestamp/) {
+ $value=scalar(localtime($returnhash{$version.':'.$_}));
+ } else {
+ $value=$returnhash{$version.':'.$_};
+ }
+ $prevattempts.=''.$value.' | ';
} sort(keys %lasthash);
}
$prevattempts.='
---|
Current | ';
map {
- $prevattempts.=''.$lasthash{$_}.' | ';
+ my $value;
+ if ($_ =~ /timestamp/) {
+ $value=scalar(localtime($lasthash{$_}));
+ } else {
+ $value=$lasthash{$_};
+ }
+ $prevattempts.=''.$value.' | ';
} sort(keys %lasthash);
$prevattempts.='
';
} else {