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

Site timer and app timer might go out of sync #86

Closed
licaon-kter opened this issue Dec 9, 2019 · 5 comments
Closed

Site timer and app timer might go out of sync #86

licaon-kter opened this issue Dec 9, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@licaon-kter
Copy link
Contributor

Server/app HEAD

Share, open browser, gps lock, see "2min ago", put device offline, see "10min ago", put device online, some time pass, browser says EXPIRED on top...looking at the device...still 1min 22sec to go

@licaon-kter
Copy link
Contributor Author

licaon-kter commented Dec 9, 2019

As seen here I guess not an actual Hauk issue per se.

Not sure these can be synced better.

@bilde2910
Copy link
Owner

It's hard to properly verify if the devices are actually synced. Does it still happen with them in sync?

@licaon-kter
Copy link
Contributor Author

Looks better when (almost) in sync, yes.

@bilde2910
Copy link
Owner

This issue actually appears to be caused by a server/browser de-sync rather than the other issue which is an app/browser de-sync problem. I can possibly fix this by having the backend tell the browser what time it actually is, and then letting the browser adjust its perception of time based on that, taking the offset into account.

@bilde2910 bilde2910 reopened this Dec 9, 2019
@bilde2910 bilde2910 added the bug Something isn't working label Dec 9, 2019
@bilde2910
Copy link
Owner

Time traveling only causes problems, so the browser will now reject its own understanding of time and trust the server instead.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants