pusher / push-notifications-web

Beams Browser notifications
MIT License
39 stars 19 forks source link

Fix bug where analytics timestamps were sent as floats #62

Closed jonathanlloyd closed 4 years ago

jonathanlloyd commented 4 years ago

The service worker was sending timestamps as floats when the event was not sent on the second. This causes validation errors on the server because the timestamp field is typed as a float.

This PR rounds the timetamps down to the nearest second.