How would you safely define the timestamps of a message? This Chat Application will be in the browser, off of some React frontend or something similar.
If we were to take the approach that we just get the current time from the browser and have that as the field of the message, this could easily be manipulated one way or another to give an incorrect time of a message since they define the properties.
So the other alternative would be to just have the inserted time in the Database, which may be delayed by however long so it may not actually represent the sent at time.
I am not sure what is the proper objective solution if there is one.

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.