From aa9fef7778ab0b829d09493436e463b94af79ee6 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Fri, 21 Oct 2016 20:56:01 -0700 Subject: squash timezone adjusted birthdays into a single day in the calendar, by lying and telling the js calendar that the end date/time is unknown --- Zotlabs/Module/Events.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Zotlabs/Module/Events.php b/Zotlabs/Module/Events.php index a5cc868be..faa46881f 100644 --- a/Zotlabs/Module/Events.php +++ b/Zotlabs/Module/Events.php @@ -611,6 +611,12 @@ class Events extends \Zotlabs\Web\Controller { $end = null; } else { $end = (($rr['adjust']) ? datetime_convert('UTC',date_default_timezone_get(),$rr['dtend'], 'c') : datetime_convert('UTC','UTC',$rr['dtend'],'c')); + + // give a fake end to birthdays so they get crammed into a + // single day on the calendar + + if($rr['etype'] === 'birthday') + $end = null; } -- cgit v1.2.3