diff options
author | redmatrix <git@macgirvin.com> | 2016-07-21 21:35:26 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-21 21:35:26 -0700 |
commit | 2c1b4326132e5387d50fbe32096daf21bf520b69 (patch) | |
tree | 1f2e3fd50df1e4dd3dd73dc2875b83c5945fba72 /include/datetime.php | |
parent | 0c3d5e99a299fb51a63f51d2e8b9117590b717f7 (diff) | |
download | volse-hubzilla-2c1b4326132e5387d50fbe32096daf21bf520b69.tar.gz volse-hubzilla-2c1b4326132e5387d50fbe32096daf21bf520b69.tar.bz2 volse-hubzilla-2c1b4326132e5387d50fbe32096daf21bf520b69.zip |
fix birthday addtocal
Diffstat (limited to 'include/datetime.php')
-rw-r--r-- | include/datetime.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/datetime.php b/include/datetime.php index 600ad6ec4..76bd6b8d6 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -556,13 +556,13 @@ function update_birthdays() { $ev['uid'] = $rr['abook_channel']; $ev['account'] = $rr['abook_account']; $ev['event_xchan'] = $rr['xchan_hash']; - $ev['start'] = datetime_convert('UTC', 'UTC', $rr['abook_dob']); - $ev['finish'] = datetime_convert('UTC', 'UTC', $rr['abook_dob'] . ' + 1 day '); + $ev['dtstart'] = datetime_convert('UTC', 'UTC', $rr['abook_dob']); + $ev['dtend'] = datetime_convert('UTC', 'UTC', $rr['abook_dob'] . ' + 1 day '); $ev['adjust'] = intval(feature_enabled($rr['abook_channel'],'smart_birthdays')); $ev['summary'] = sprintf( t('%1$s\'s birthday'), $rr['xchan_name']); $ev['description'] = sprintf( t('Happy Birthday %1$s'), '[zrl=' . $rr['xchan_url'] . ']' . $rr['xchan_name'] . '[/zrl]') ; - $ev['type'] = 'birthday'; + $ev['etype'] = 'birthday'; $z = event_store_event($ev); if ($z) { |