aboutsummaryrefslogtreecommitdiffstats
path: root/month.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-01-26 18:48:43 +0000
committerChad Little <clittle@users.sourceforge.net>2004-01-26 18:48:43 +0000
commit044a72589427d5fa7f5e59562300bd9c2844ce89 (patch)
treebb931386da50c4b6b4202c11e38acaa3b77787da /month.php
parentd85c0578f18324c7c0b764f2e6969908f426349f (diff)
downloadphpicalendar-044a72589427d5fa7f5e59562300bd9c2844ce89.tar.gz
phpicalendar-044a72589427d5fa7f5e59562300bd9c2844ce89.tar.bz2
phpicalendar-044a72589427d5fa7f5e59562300bd9c2844ce89.zip
strtotime improperly reports '0005' as '5AM', a workaround is in place. changed version to 1.2
Diffstat (limited to 'month.php')
-rw-r--r--month.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/month.php b/month.php
index 3fbf55b..9e8d7f2 100644
--- a/month.php
+++ b/month.php
@@ -123,13 +123,13 @@ include (BASE.'includes/header.inc.php');
echo '</div>';
} else {
echo '<div align="left" class="V9">&nbsp;';
- $event_start = @$val["event_start"];
+ $event_start = @$val["start_unixtime"];
$event_end = @$val["event_end"];
if (isset($val['display_end'])) $event_end = $val['display_end'];
- $event_start = date($timeFormat, @strtotime ("$event_start"));
- $start2 = date($timeFormat_small,@strtotime("$event_start"));
+ $event_star = date($timeFormat, $event_start);
+ $start2 = date($timeFormat_small, $event_start);
$event_end = date($timeFormat, @strtotime ("$event_end"));
- openevent($event_calna, $event_start, $event_end, $val, $month_event_lines, 10, "$start2 ", '', 'ps3', $event_url);
+ openevent($event_calna, $event_star, $event_end, $val, $month_event_lines, 10, "$start2 ", '', 'ps3', $event_url);
echo '</div>';
}
}
@@ -191,10 +191,10 @@ include (BASE.'includes/header.inc.php');
if ($new_val2["event_text"]) {
if (isset($new_val2["event_start"])) {
- $event_start = $new_val2["event_start"];
+ $event_start = $new_val2["start_unixtime"];
$event_end = $new_val2["event_end"];
if (isset($new_val2['display_end'])) $event_end = $new_val2['display_end'];
- $event_start = date ($timeFormat, strtotime ("$event_start"));
+ $event_start = date ($timeFormat, $event_start);
$event_end = date ($timeFormat, strtotime ("$event_end"));
$event_start2 = $event_start;
} else {

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