In the database, I add time in the time () format, i.e. in seconds. When the operation time is returned to the client, he sees the server time, not his own. How to convert server time correctly?
As an idea, it is to find out the time in seconds on the device, with a request to send this time to the server. There calculate the difference.
Tell me if anyone has a ready-made algorithm and code.
new Date(timestampFromPhp*1000)- vp_arthtime()function on the server (inphp) - vp_arth