The timestamp must be specified in milliseconds not in seconds
authorOlaf Braun <info@braun-development.de>
Wed, 14 Aug 2024 14:14:17 +0000 (16:14 +0200)
committerOlaf Braun <info@braun-development.de>
Wed, 14 Aug 2024 14:14:17 +0000 (16:14 +0200)
wcfsetup/install/files/service-worker/index.php

index 49ff39514054e37530ef78650583c106edb86c9a..16a7d05002a5e2dcb8b4ef1bd26d5c427202c903 100644 (file)
@@ -24,7 +24,7 @@ self.addEventListener("push", (event) => {
                        self.registration.showNotification(payload.title, {
                                body: payload.message,
                                icon: payload.icon,
-                               timestamp: payload.time,
+                               timestamp: payload.time * 1000,
                                tag: payload.notificationID,
                                data: {
                                        url: payload.url,