[LON-CAPA-cvs] cvs: loncom /localize lonlocal.pm
www
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 29 Jan 2008 13:26:13 -0000
www Tue Jan 29 08:26:13 2008 EDT
Modified files:
/loncom/localize lonlocal.pm
Log:
Bug #5609: In America, the week starts with Sunday. But elsewhere ...
Index: loncom/localize/lonlocal.pm
diff -u loncom/localize/lonlocal.pm:1.42 loncom/localize/lonlocal.pm:1.43
--- loncom/localize/lonlocal.pm:1.42 Thu Oct 18 17:08:31 2007
+++ loncom/localize/lonlocal.pm Tue Jan 29 08:26:09 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Localization routines
#
-# $Id: lonlocal.pm,v 1.42 2007/10/18 21:08:31 albertel Exp $
+# $Id: lonlocal.pm,v 1.43 2008/01/29 13:26:09 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -289,7 +289,8 @@
my $day = $dt->day_of_month();
my $mon = $dt->month()-1;
my $year = $dt->year();
- my $wday = $dt->wday()-1;
+ my $wday = $dt->wday();
+ if ($wday==7) { $wday=0; }
my $month =(split(/\,/,$lh->maketext('date_months')))[$mon];
my $weekday=(split(/\,/,$lh->maketext('date_days')))[$wday];
if ($seconds<10) {