Monday, 9 September 2013

PHP Time and JavaScript Time

PHP Time and JavaScript Time

I have a bit of a situation here. I have a simple task which is to allow a
user to do something on a web app in timed intervals. Say, I did the
action now, I should only be able to perform the action again after 10
min.
Server time and client time are in different timezones. I keep server time
in my DB. I would appreciate help in converting server time to the time
zone of the client machine so that I can do the check in the front end
instead of another extra trip to the server.

No comments:

Post a Comment