Is there a way to determine the time without using the system clock? When using javascript's Date
, a user could simply change the time on his system clock in order to mess up your program. I would assume that checking the time from a reliable source such as Google automatically would be the way to go, but I don't know how to do that.
Edit: This is not a duplicate of the other question someone has referenced because this is Javascript, not Rails, and I cannot simply take the time from the host of the API.