From 4fbbf5acbf9b2754d16307c21eb7573e53823267 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Wed, 20 May 2020 09:11:49 +0200 Subject: [PATCH] Notification time --- app/models/managers/NotificationManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/managers/NotificationManager.php b/app/models/managers/NotificationManager.php index d33e488..e444114 100644 --- a/app/models/managers/NotificationManager.php +++ b/app/models/managers/NotificationManager.php @@ -37,7 +37,7 @@ class NotificationManager $notification = new Notification($serverKey); $notification->to($to); - $notification->notification($data['title'], $data['body'], $data['icon'], ''); + $notification->notification($data['title'], date("h:i") . " - " . $data['body'], $data['icon'], ''); $answer = $notification->send(); $notification = null; @@ -76,7 +76,7 @@ class Notification } $this->jsonPayload["data"]["notification"]["title"] = $title; - $this->jsonPayload["data"]["notification"]["body"] = $body; + $this->jsonPayload["data"]["notification"]["body"] = date("h:i") . " - " . $body; $this->jsonPayload["data"]["notification"]["icon"] = $icon; $this->jsonPayload["data"]["notification"]["click_action"] = $action; }