aboutsummaryrefslogtreecommitdiffstats
path: root/day.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-05-09 20:28:56 +0000
committerChad Little <clittle@users.sourceforge.net>2003-05-09 20:28:56 +0000
commit61c18056b9f85a789b789e7ddbe6fad09e74d92f (patch)
tree4f0f8dc315060d65006ea0a4787802be6ff7b8ef /day.php
parentf6f28f72894b5d54e9ded8c72c927bc8168e336f (diff)
downloadphpicalendar-61c18056b9f85a789b789e7ddbe6fad09e74d92f.tar.gz
phpicalendar-61c18056b9f85a789b789e7ddbe6fad09e74d92f.tar.bz2
phpicalendar-61c18056b9f85a789b789e7ddbe6fad09e74d92f.zip
Added server offset in seconds.
Diffstat (limited to 'day.php')
-rw-r--r--day.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/day.php b/day.php
index a34faff..fc1a5b2 100644
--- a/day.php
+++ b/day.php
@@ -2,7 +2,7 @@
if (isset($HTTP_GET_VARS['jumpto_day'])) {
$jumpto_day_time = strtotime($HTTP_GET_VARS['jumpto_day']);
if ($jumpto_day_time == -1) {
- $getdate = date('Ymd');
+ $getdate = date('Ymd', strtotime("now + $second_offset seconds"));
} else {
$getdate = date('Ymd', $jumpto_day_time);
}
@@ -15,7 +15,7 @@ if ($minical_view == 'current') $minical_view = 'day';
$starttime = '0500';
$weekstart = 1;
$unix_time = strtotime($getdate);
-$today_today = date ('Ymd');
+$today_today = date ('Ymd', $unix_time);
$tomorrows_date = date( 'Ymd', strtotime('+1 day', $unix_time));
$yesterdays_date = date( 'Ymd', strtotime('-1 day', $unix_time));
$display_date = localizeDate($dateFormat_day, $unix_time);

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