mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
Set the recipients timezone before sending the appointment email
This commit is contained in:
parent
ea30c62a84
commit
9681e7d6ad
1 changed files with 10 additions and 6 deletions
|
@ -53,7 +53,7 @@ class Notifications {
|
||||||
* @param array $settings Required settings.
|
* @param array $settings Required settings.
|
||||||
* @param bool|false $manage_mode Manage mode.
|
* @param bool|false $manage_mode Manage mode.
|
||||||
*/
|
*/
|
||||||
public function notify_appointment_saved(array $appointment, array $service, array $provider, array $customer, array $settings, bool $manage_mode = FALSE)
|
public function notify_appointment_saved(array $appointment, array $service, array $provider, array $customer, array $settings, bool $manage_mode = FALSE): void
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -201,7 +201,7 @@ class Notifications {
|
||||||
* @param array $customer Customer data.
|
* @param array $customer Customer data.
|
||||||
* @param array $settings Required settings.
|
* @param array $settings Required settings.
|
||||||
*/
|
*/
|
||||||
public function notify_appointment_deleted(array $appointment, array $service, array $provider, array $customer, array $settings)
|
public function notify_appointment_deleted(array $appointment, array $service, array $provider, array $customer, array $settings): void
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -227,7 +227,8 @@ class Notifications {
|
||||||
$customer,
|
$customer,
|
||||||
$settings,
|
$settings,
|
||||||
$provider['email'],
|
$provider['email'],
|
||||||
$delete_reason
|
$delete_reason,
|
||||||
|
$provider['timezone']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -246,7 +247,8 @@ class Notifications {
|
||||||
$customer,
|
$customer,
|
||||||
$settings,
|
$settings,
|
||||||
$customer['email'],
|
$customer['email'],
|
||||||
$delete_reason
|
$delete_reason,
|
||||||
|
$customer['timezone']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -267,7 +269,8 @@ class Notifications {
|
||||||
$customer,
|
$customer,
|
||||||
$settings,
|
$settings,
|
||||||
$admin['email'],
|
$admin['email'],
|
||||||
$delete_reason
|
$delete_reason,
|
||||||
|
$admin['timezone']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -293,7 +296,8 @@ class Notifications {
|
||||||
$customer,
|
$customer,
|
||||||
$settings,
|
$settings,
|
||||||
$secretary['email'],
|
$secretary['email'],
|
||||||
$delete_reason
|
$delete_reason,
|
||||||
|
$secretary['timezone']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue