aboutsummaryrefslogtreecommitdiffstats
path: root/include/event.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-10-04 07:18:19 +0000
committerMario <mario@mariovavti.com>2019-10-04 09:25:39 +0200
commit1fbc8739b9521703e68f274728ec04b4b941d49e (patch)
treeeb274da5fc4ed0fd593d2a9587918b9f266c6da8 /include/event.php
parent58b77e3427ef5130ca07ebaf73d86cbaff4863cd (diff)
downloadvolse-hubzilla-1fbc8739b9521703e68f274728ec04b4b941d49e.tar.gz
volse-hubzilla-1fbc8739b9521703e68f274728ec04b4b941d49e.tar.bz2
volse-hubzilla-1fbc8739b9521703e68f274728ec04b4b941d49e.zip
fix bbcode event reshare timezone issue
(cherry picked from commit 79bcc157bf8f0c67a8ee41ae9c53a9dec969f8d1)
Diffstat (limited to 'include/event.php')
-rw-r--r--include/event.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/event.php b/include/event.php
index 6689919cf..6be1b6705 100644
--- a/include/event.php
+++ b/include/event.php
@@ -276,6 +276,9 @@ function format_event_bbcode($ev) {
if($ev['event_hash'])
$o .= '[event-id]' . $ev['event_hash'] . '[/event-id]';
+ if($ev['timezone'])
+ $o .= '[event-timezone]' . $ev['timezone'] . '[/event-timezone]';
+
if($ev['adjust'])
$o .= '[event-adjust]' . $ev['adjust'] . '[/event-adjust]';
@@ -324,6 +327,9 @@ function bbtoevent($s) {
if(preg_match("/\[event\-id\](.*?)\[\/event\-id\]/is",$s,$match))
$ev['event_hash'] = $match[1];
$match = '';
+ if(preg_match("/\[event\-timezone\](.*?)\[\/event\-timezone\]/is",$s,$match))
+ $ev['timezone'] = $match[1];
+ $match = '';
if(preg_match("/\[event\-adjust\](.*?)\[\/event\-adjust\]/is",$s,$match))
$ev['adjust'] = $match[1];
if(array_key_exists('dtstart',$ev)) {