aboutsummaryrefslogtreecommitdiffstats
path: root/sidebar.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 /sidebar.php
parent2d0769b6931257999a91e2039c02fb9a9d7a0969 (diff)
downloadphpicalendar-5b1c3e027de976340f2b1858a8bc0ca2eb3c7590.tar.gz
phpicalendar-5b1c3e027de976340f2b1858a8bc0ca2eb3c7590.tar.bz2
phpicalendar-5b1c3e027de976340f2b1858a8bc0ca2eb3c7590.zip
Fixed Double Sundays around the site.
Diffstat (limited to 'sidebar.php')
-rw-r--r--sidebar.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/sidebar.php b/sidebar.php
index 7db68c6..cbf083a 100644
--- a/sidebar.php
+++ b/sidebar.php
@@ -237,7 +237,7 @@
$day_num = date("w", $start_day);
$day = $daysofweekreallyshort_lang[$day_num];
print "<td align=\"center\" class=\"G10BOLD\">$day</td>\n";
- $start_day = ($start_day + (24.5 * 60 * 60));
+ $start_day = strtotime("+1 day", $start_day);
}
?>
</tr>
@@ -268,7 +268,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";
@@ -317,7 +317,7 @@
$day_num = date("w", $start_day);
$day = $daysofweekreallyshort_lang[$day_num];
print "<td align=\"center\" class=\"G10BOLD\">$day</td>\n";
- $start_day = ($start_day + (24.5 * 60 * 60));
+ $start_day = strtotime("+1 day", $start_day);
}
?>
</tr>
@@ -348,7 +348,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";
@@ -397,7 +397,7 @@
$day_num = date("w", $start_day);
$day = $daysofweekreallyshort_lang[$day_num];
print "<td align=\"center\" class=\"G10BOLD\">$day</td>\n";
- $start_day = ($start_day + (24.5 * 60 * 60));
+ $start_day = strtotime("+1 day", $start_day);
}
?>
</tr>
@@ -428,7 +428,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