calendar merge: only export events that will not break the importer. this will probably dismiss some old experimental entries

This commit is contained in:
Mario Vavti 2019-05-15 18:21:52 +02:00
parent 3c8867a1e8
commit 8be0031602

View File

@ -335,8 +335,9 @@ class Channel_calendar extends \Zotlabs\Web\Controller {
);
}
elseif($export) {
$r = q("SELECT * from event where uid = %d",
intval(local_channel())
$r = q("SELECT * from event where uid = %d and dtstart > '%s' and dtend > dtstart",
intval(local_channel()),
dbesc(NULL_DATE)
);
}
else {