mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
maybe fixed the double 29 oct problem
This commit is contained in:
parent
5008306a5d
commit
28c23a4c17
@ -48,7 +48,7 @@
|
||||
$link = "edit_entry.php";
|
||||
|
||||
echo "<TABLE BORDER=0 bgcolor=\"".$phpgw_info["theme"]["bg_color"]."\">";
|
||||
$sun = get_sunday_before($thisyear, $thismonth, 1);
|
||||
$sun = get_sunday_before($thisyear, $thismonth, 1) + 7200;
|
||||
|
||||
$monthstart = mktime(2,0,0,$thismonth,1,$thisyear);
|
||||
$monthend = mktime(2,0,0,$thismonth + 1,0,$thisyear);
|
||||
@ -75,8 +75,7 @@
|
||||
. "<td>" . lang("Sa") . "</td>"
|
||||
. "</tr>";
|
||||
|
||||
for ($i = $sun; date("Ymd",$i) <= date ("Ymd",$monthend);
|
||||
$i += (24 * 3600 * 7) ) {
|
||||
for ($i = $sun; date("Ymd",$i) <= date("Ymd",$monthend); $i += (24 * 3600 * 7) ) {
|
||||
echo "<TR>";
|
||||
|
||||
for ($j = 0; $j < 7; $j++) {
|
||||
@ -269,9 +268,7 @@ function month_name ( $m ) {
|
||||
if (date("d", $date) == date("d", $start)) {
|
||||
$ret[$n++] = $repeated_events[$i];
|
||||
}
|
||||
}
|
||||
|
||||
else if ($repeated_events[$i][cal_type] == 'yearly') {
|
||||
} else if ($repeated_events[$i][cal_type] == 'yearly') {
|
||||
$yrS = date("Y", $start);
|
||||
$yr = date("Y", $date);
|
||||
|
||||
@ -422,7 +419,6 @@ function month_name ( $m ) {
|
||||
return $repeated_events;
|
||||
}
|
||||
|
||||
|
||||
function get_sunday_before($year,$month,$day)
|
||||
{
|
||||
$weekday = date("w", mktime(0,0,0,$month,$day,$year) );
|
||||
|
Loading…
Reference in New Issue
Block a user