First of all this is not a duplicate of:
and some more. As none of them resolved my problem.
I’m doing some verifications on server side based on client sent Unix timestamp, this two should match (or 1-2 secs difference, doesn’t matter), but it doesn’t.
On the server side I’m getting the timestamp with
time() (php), so I can compare with the timestamp sent from client.
And should match with the one the client sends, but it doesn’t on my phone, chrome browser and i’m sure that it doesn’t with other systems.
alert(new Date().getTime()); alert(Date.now()); alert(new Date().valueOf()); alert(Date.now()); var x = new Date(); alert(x.getTime() + x.getTimezoneOffset()*60);
On my desktop the output is:
1512035634733 1512035634733 1512035634734 1512035634734 15120356347340
Thursday, November 30, 2017 9:53:54.734 AM
On my mobile chrome browser:
1512036893294 1512036893294 1512036893294 1512036893294 15120368932940
Thursday, November 30, 2017 10:14:53.294 AM
So, I am almost sure that is because I have my phone clock set to 20mins from now, but I would like to have a ‘global timestamp’ common to all devices all most of them.
So wrapping things up, my question is:
Is there any way that i can ensure that the timestamp sent from client will be the same (1-3 secs, margin of error) as the server have?
PS: I’d rather not have to rely on an external api to get the correct timestamp, as this force another request from the client not helping the performance of the app.
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!