Skip to content

Commit

Permalink
#36 #37 [QuickEvent] fix: actionreminder
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Mar 28, 2023
1 parent 3cd767b commit 3e27429
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions view/quickevent.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@
}

// Create reminders
if (getDolGlobalString('AGENDA_REMINDER_BROWSER') && $dateEnd > dol_now()) {
$dateremind = dol_time_plus_duree($dateEnd, -30, 'i');
if (getDolGlobalString('AGENDA_REMINDER_BROWSER') && $dateStart > dol_now()) {
$dateremind = dol_time_plus_duree($dateStart, -30, 'i');

$actionCommReminder->dateremind = $dateremind;
$actionCommReminder->typeremind = 'browser';
Expand All @@ -237,7 +237,7 @@
setEventMessages($langs->trans('ErrorReminderActionCommCreation'), $actioncomm->errors, 'errors');
$error++;
} else {
$mesg .= $langs->trans('ReminderActionCommCreation', dol_print_date($dateremind, 'dayhourtext')) . '<br>';
$mesg .= $langs->trans('ReminderActionCommCreation', dol_print_date($dateremind, 'dayhourtext', 'tzuser')) . '<br>';
}
}
} else {
Expand Down

0 comments on commit 3e27429

Please sign in to comment.