I have a REST API that is accessed by a mobile app. I've included some basic authentication configuration, one of them being based on time; the client (Android) gets the system current time (Java command System.getCurrentTimeMillis() --> the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC ), and when the server processes the call, it does the same, and then compares both value and of the difference is less than say 10 seconds, it considers the call valid.
The problem is that I'm seeing some (just a few, actually) calls in which the difference between client and server is about 1 hour, what makes me think that maybe this Java function can somehow be affected by some internal configuration on the device...
Thanks!