I have an application where two users can update an item in the database, however I was thinking about the following situation:
If they click to sync instantly, including hour / minutes / seconds, you can subscribe to the update for each other or there would be a problem (this in my head).
To solve this I thought of using thousandths of seconds, which in the case the probability would be even less, however as they say, lightning does not fall in the same place, but it goes that falls. I'm currently using this way to get the current sync time:
$date_sync = time();
$date_sync = date('Y/m/d H:i:s', $date_sync);
I know there are several ways in which I can solve this problem, but I'm not sure which would be the most viable. Could someone give me a suggestion?!