diff options
author | friendica <info@friendica.com> | 2012-01-25 13:42:06 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-01-25 13:42:06 -0800 |
commit | d2a9341128efb4e2952acc3d59e7716471ffdee0 (patch) | |
tree | c075536a52f6ccad6ca52d614da17f5a50974bbf /mod/events.php | |
parent | a24a383dab03b313598c56cec5c83cbb9ca62595 (diff) | |
download | volse-hubzilla-d2a9341128efb4e2952acc3d59e7716471ffdee0.tar.gz volse-hubzilla-d2a9341128efb4e2952acc3d59e7716471ffdee0.tar.bz2 volse-hubzilla-d2a9341128efb4e2952acc3d59e7716471ffdee0.zip |
new event current date off by one, submit button misplaced
Diffstat (limited to 'mod/events.php')
-rwxr-xr-x | mod/events.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/events.php b/mod/events.php index 660a92df0..5da8f17fc 100755 --- a/mod/events.php +++ b/mod/events.php @@ -279,9 +279,9 @@ function events_content(&$a) { $sdt = ((x($orig_event)) ? $orig_event['start'] : 'now'); $fdt = ((x($orig_event)) ? $orig_event['finish'] : 'now'); - $tz = ((x($orig_event) && $orig_event['adjust']) ? date_default_timezone_get() : 'UTC'); - - + $tz = date_default_timezone_get(); + if(x($orig_event)) + $tz = (($orig_event['adjust']) ? date_default_timezone_get() : 'UTC'); $syear = datetime_convert('UTC', $tz, $sdt, 'Y'); $smonth = datetime_convert('UTC', $tz, $sdt, 'm'); |