aboutsummaryrefslogtreecommitdiffstats
path: root/include/datetime.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-05-26 18:05:11 +0200
committerMario Vavti <mario@mariovavti.com>2019-05-26 18:05:11 +0200
commite466d72058b2543bec69c77d2730828acada38a1 (patch)
treeaeb1a73e02c3d28409e96eb0591a7e28846b5539 /include/datetime.php
parent528b9b6a60d847b0ecb639cb7fb8e01ee79b11d4 (diff)
downloadvolse-hubzilla-e466d72058b2543bec69c77d2730828acada38a1.tar.gz
volse-hubzilla-e466d72058b2543bec69c77d2730828acada38a1.tar.bz2
volse-hubzilla-e466d72058b2543bec69c77d2730828acada38a1.zip
adjust birthday handling according to community decision and slightly change display of allday event items
Diffstat (limited to 'include/datetime.php')
-rw-r--r--include/datetime.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/datetime.php b/include/datetime.php
index d049fc7c5..ef0927ea4 100644
--- a/include/datetime.php
+++ b/include/datetime.php
@@ -516,13 +516,14 @@ function update_birthdays() {
'event_xchan' => $rr['xchan_hash'],
'dtstart' => datetime_convert('UTC', 'UTC', $rr['abook_dob']),
'dtend' => datetime_convert('UTC', 'UTC', $rr['abook_dob'] . ' + 1 day '),
- 'adjust' => 1, //intval(feature_enabled($rr['abook_channel'],'smart_birthdays')),
+ 'adjust' => 0,
'summary' => sprintf( t('%1$s\'s birthday'), $rr['xchan_name']),
'description' => sprintf( t('Happy Birthday %1$s'), '[zrl=' . $rr['xchan_url'] . ']' . $rr['xchan_name'] . '[/zrl]'),
'etype' => 'birthday',
];
$z = event_store_event($ev);
+
if ($z) {
$item_id = event_store_item($ev, $z);
q("update abook set abook_dob = '%s' where abook_id = %d",