version 1.34, 2005/06/22 05:04:51
|
version 1.35, 2005/11/10 19:19:51
|
Line 259 sub get_language_handle {
|
Line 259 sub get_language_handle {
|
} |
} |
|
|
# ========================================================== Localize localtime |
# ========================================================== Localize localtime |
|
sub gettimezone { |
|
return ' ('.$Apache::lonnet::env{'server.timezone'}.')'; |
|
} |
|
|
sub locallocaltime { |
sub locallocaltime { |
my $thistime=shift; |
my $thistime=shift; |
if ((¤t_language=~/^en/) || (!$lh)) { |
if ((¤t_language=~/^en/) || (!$lh)) { |
return ''.localtime($thistime); |
return ''.localtime($thistime).&gettimezone(); |
} else { |
} else { |
my $format=$lh->maketext('date_locale'); |
my $format=$lh->maketext('date_locale'); |
if ($format eq 'date_locale') { |
if ($format eq 'date_locale') { |
Line 293 sub locallocaltime {
|
Line 296 sub locallocaltime {
|
'month','weekday','ampm') { |
'month','weekday','ampm') { |
$format=~s/\$$_/eval('$'.$_)/gse; |
$format=~s/\$$_/eval('$'.$_)/gse; |
} |
} |
return $format; |
return $format.&gettimezone(); |
} |
} |
} |
} |
|
|