[LON-CAPA-cvs] cvs: loncom /interface lonannounce.pm
www
lon-capa-cvs@mail.lon-capa.org
Tue, 17 Aug 2004 15:38:58 -0000
www Tue Aug 17 11:38:58 2004 EDT
Modified files:
/loncom/interface lonannounce.pm
Log:
Blocker bug #3308: it really does not matter if it is CURRENTLY daylight
saving time. Telling mktime that we don't know if is or is not daylight
saving time appears to work just fine.
Bug #3089: make days appear on top of cells (and <br> should be <br />)
For inclusion in 1.2
Index: loncom/interface/lonannounce.pm
diff -u loncom/interface/lonannounce.pm:1.29 loncom/interface/lonannounce.pm:1.30
--- loncom/interface/lonannounce.pm:1.29 Sat Jul 3 16:45:23 2004
+++ loncom/interface/lonannounce.pm Tue Aug 17 11:38:58 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Announce
#
-# $Id: lonannounce.pm,v 1.29 2004/07/03 20:45:23 albertel Exp $
+# $Id: lonannounce.pm,v 1.30 2004/08/17 15:38:58 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -157,11 +157,11 @@
substr($msg,0,20).'...</a><br />';
}
}
- return '<td'.
+ return '<td valign="top"'.
((($day eq $todayhash{'day'}) &&
($month eq $todayhash{'month'}) &&
($year eq $todayhash{'year'}))?' bgcolor="#FFFF00"':'').
- '>'.&tfont('<b>'.&picklink($day,$day,$month,$year).'</b><br>'.$output).'</td>';
+ '>'.&tfont('<b>'.&picklink($day,$day,$month,$year).'</b><br />'.$output).'</td>';
}
sub plaincell {
@@ -313,7 +313,7 @@
&Apache::loncommon::maketime( 'day' => 1, 'month'=> $month,
'year' => $year, 'hours' => 0,
'minutes' => 0, 'seconds' => 0,
- 'dlsav' => $todayhash{'dlsav'} ));
+ 'dlsav' => -1 ));
my $weekday=$firstday{'weekday'};
# ------------------------------------------------------------ Print the screen