aboutsummaryrefslogtreecommitdiffstats
path: root/month_bottom.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-10-22 02:32:49 +0000
committerChad Little <clittle@users.sourceforge.net>2002-10-22 02:32:49 +0000
commit5b1c3e027de976340f2b1858a8bc0ca2eb3c7590 (patch)
treedd9775218f6917281835624fd478c0bbdc6f5df4 /month_bottom.php
parent2d0769b6931257999a91e2039c02fb9a9d7a0969 (diff)
downloadphpicalendar-5b1c3e027de976340f2b1858a8bc0ca2eb3c7590.tar.gz
phpicalendar-5b1c3e027de976340f2b1858a8bc0ca2eb3c7590.tar.bz2
phpicalendar-5b1c3e027de976340f2b1858a8bc0ca2eb3c7590.zip
Fixed Double Sundays around the site.
Diffstat (limited to 'month_bottom.php')
-rw-r--r--month_bottom.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/month_bottom.php b/month_bottom.php
index aed4225..8dec8fc 100644
--- a/month_bottom.php
+++ b/month_bottom.php
@@ -49,7 +49,7 @@
$day_num = date("w", $start_day);
$day = $daysofweekreallyshort_lang[$day_num];
print "<td align=\"center\"><font class=\"G10BOLD\">$day</font></td>\n";
- $start_day = ($start_day + (24.5 * 60 * 60));
+ $start_day = strtotime("+1 day", $start_day);
}
?>
</tr>
@@ -79,7 +79,7 @@
echo "<a class=\"psf\" href=\"$minical_view.php?cal=$cal&getdate=$daylink\">$day</a>\n";
echo "</td>\n";
}
- $start_day = ($start_day + (24.5 * 60 * 60));
+ $start_day = strtotime("+1 day", $start_day);
$i++;
if ($i == 7) {
echo "</tr>\n";
@@ -269,7 +269,7 @@
$day_num = date("w", $start_day);
$day = $daysofweekreallyshort_lang[$day_num];
print "<td align=\"center\"><font class=\"G10BOLD\">$day</font></td>\n";
- $start_day = ($start_day + (24.5 * 60 * 60));
+ $start_day = strtotime("+1 day", $start_day);
}
?>
</tr>
@@ -299,7 +299,7 @@
echo "<a class=\"psf\" href=\"$minical_view.php?cal=$cal&getdate=$daylink\">$day</a>\n";
echo "</td>\n";
}
- $start_day = ($start_day + (24.5 * 60 * 60));
+ $start_day = strtotime("+1 day", $start_day);
$i++;
if ($i == 7) {
echo "</tr>\n";

© 2014-2024 Faster IT GmbH | imprint | privacy policy