Index: lib/MT/Util.pm =================================================================== RCS file: /export/group/httpd/CVS/mt/lib/MT/Util.pm,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -c -r1.1.1.1 -r1.2 *** lib/MT/Util.pm 30 Dec 2006 07:57:27 -0000 1.1.1.1 --- lib/MT/Util.pm 30 Dec 2006 19:12:14 -0000 1.2 *************** *** 57,63 **** $days -= int($y /= 25); $days += $y >> 2; $days += $In_Year[$leap][$m-1] + $d; ! $days % 7; } sub yday_from_ts { --- 57,63 ---- $days -= int($y /= 25); $days += $y >> 2; $days += $In_Year[$leap][$m-1] + $d; ! ($days-1) % 7; } sub yday_from_ts { Index: php/lib/MTUtil.php =================================================================== RCS file: /export/group/httpd/CVS/mt/php/lib/MTUtil.php,v retrieving revision 1.1.1.1 retrieving revision 1.4 diff -c -r1.1.1.1 -r1.4 *** php/lib/MTUtil.php 30 Dec 2006 07:56:40 -0000 1.1.1.1 --- php/lib/MTUtil.php 30 Dec 2006 21:05:35 -0000 1.4 *************** *** 149,155 **** $days -= intval($y /= 25); $days += $y >> 2; $days += $In_Year[$leap][$m-1] + $d; ! return $days % 7; } function yday_from_ts($y, $m, $d) { --- 149,155 ---- $days -= intval($y /= 25); $days += $y >> 2; $days += $In_Year[$leap][$m-1] + $d; ! return ($days-1) % 7; } function yday_from_ts($y, $m, $d) { Index: plugins/WidgetManager/default_widgets/calendar.mtml =================================================================== RCS file: /export/group/httpd/CVS/mt/plugins/WidgetManager/default_widgets/calendar.mtml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -c -r1.1.1.1 -r1.2 *** plugins/WidgetManager/default_widgets/calendar.mtml 30 Dec 2006 07:56:51 -0000 1.1.1.1 --- plugins/WidgetManager/default_widgets/calendar.mtml 30 Dec 2006 19:12:14 -0000 1.2 *************** *** 4,16 ****