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

This commit is contained in:
zotlabs 2016-10-21 20:56:01 -07:00
parent 9fea44cbc3
commit aa9fef7778

View File

@ -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;
}