Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Chrome - wrong date of notification #11

Open
obagley opened this issue Jun 23, 2018 · 2 comments
Open

Android Chrome - wrong date of notification #11

obagley opened this issue Jun 23, 2018 · 2 comments

Comments

@obagley
Copy link

obagley commented Jun 23, 2018

Noticed a problem with notification date on Android Chrome. It pops up with 18-01-1970 date, instead of the time of the day as for other Android notifications. 18 clearly comes from the 2018 year.

For now the workaround I found is to replace this line

timestamp: data.time,

with
timestamp: Date.now(),

This gave the correct behaviour with the time of the day in the Android Chrome notifications.

@lavigor
Copy link
Owner

lavigor commented Jun 23, 2018

Thank you for reporting the issue, I'll look into it when I have time.

@Toutenkit
Copy link

Work with
timestamp: data.time * 1000,

Android Chrome 91.0.4472.88
and all media

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants