diff options
author | Mario <mario@mariovavti.com> | 2020-04-03 18:34:15 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-04-03 18:34:15 +0000 |
commit | 6cfaa5cba32eb1e7f2b4a0ba6bb281ebd610a54b (patch) | |
tree | 8690cd3f857600d09040e06bdc876cb903a7edc1 /include/event.php | |
parent | 31fea1014ef634fe1457451332b8e478768c5645 (diff) | |
download | volse-hubzilla-6cfaa5cba32eb1e7f2b4a0ba6bb281ebd610a54b.tar.gz volse-hubzilla-6cfaa5cba32eb1e7f2b4a0ba6bb281ebd610a54b.tar.bz2 volse-hubzilla-6cfaa5cba32eb1e7f2b4a0ba6bb281ebd610a54b.zip |
set timezone iconfig a little earlier in the process so that it will be included in the object
Diffstat (limited to 'include/event.php')
-rw-r--r-- | include/event.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/event.php b/include/event.php index b92d2c8a9..0cc7170d1 100644 --- a/include/event.php +++ b/include/event.php @@ -1251,6 +1251,8 @@ function event_store_item($arr, $event) { else $item_arr['plink'] = z_root() . '/display/' . gen_link_id($item_arr['mid']); + set_iconfig($item_arr, 'event', 'timezone', $arr['timezone'], true); + $x = q("select * from xchan where xchan_hash = '%s' limit 1", dbesc($arr['event_xchan']) ); @@ -1286,7 +1288,7 @@ function event_store_item($arr, $event) { // activities refer to the item message_id as the parent. set_iconfig($item_arr, 'system','event_id',$event['event_hash'],true); - set_iconfig($item_arr, 'event','timezone',$arr['timezone'],true); + //set_iconfig($item_arr, 'event','timezone',$arr['timezone'],true); $res = item_store($item_arr); |