RSS Amplifier

Recent Questions - Software Engineering Stack Exchange · Aug 10, 2026

In a chat application how would you safely define timestamps of a message?

0
Sign in to vote or save

This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.

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…

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.

Read on softwareengineering.stackexchange.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.