aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authornobody <nobody@zotlabs.com>2021-02-17 16:36:27 -0800
committernobody <nobody@zotlabs.com>2021-02-17 16:36:27 -0800
commit8a65fc8a43116fcdce12bcbccd452b82a70d8da1 (patch)
treeaf411f37870fa892197a4b8dd1b9248a25c3232f /include/channel.php
parent0b95e061a3f15a21913e8d3c505dfe5d3fccb287 (diff)
downloadvolse-hubzilla-8a65fc8a43116fcdce12bcbccd452b82a70d8da1.tar.gz
volse-hubzilla-8a65fc8a43116fcdce12bcbccd452b82a70d8da1.tar.bz2
volse-hubzilla-8a65fc8a43116fcdce12bcbccd452b82a70d8da1.zip
more work on hz->zap migration stuff
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/channel.php b/include/channel.php
index 800871ab6..cc5761162 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -1088,11 +1088,17 @@ function identity_basic_export($channel_id, $sections = null, $zap_compat = fals
}
if(in_array('events',$sections)) {
+
+ // @fixme - Not totally certain how to handle $zot_compat for the event timezone which exists
+ // in Hubzilla but is stored with the item and not the event. In Zap, stored information is
+ // always UTC and localised on access as per standard conventions for working with global time data.
+
$r = q("select * from event where uid = %d",
intval($channel_id)
);
- if($r)
+ if ($r) {
$ret['event'] = $r;
+ }
$r = q("select * from item where resource_type = 'event' and uid = %d",
intval($channel_id)