diff options
author | zotlabs <mike@macgirvin.com> | 2016-10-21 20:56:01 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-10-21 20:56:01 -0700 |
commit | aa9fef7778ab0b829d09493436e463b94af79ee6 (patch) | |
tree | 66f764b5899a567ef09a02ffb8d84bcc6646e4f4 | |
parent | 9fea44cbc36e2e8bb5b2b521694d797e0eadc456 (diff) | |
download | volse-hubzilla-aa9fef7778ab0b829d09493436e463b94af79ee6.tar.gz volse-hubzilla-aa9fef7778ab0b829d09493436e463b94af79ee6.tar.bz2 volse-hubzilla-aa9fef7778ab0b829d09493436e463b94af79ee6.zip |
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
-rw-r--r-- | Zotlabs/Module/Events.php | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |