Timestamps should automatically adjust to the time zone of the person viewing the app at that time.
Example: If user1 in California sends a message at 8:00 am to user 2 in Texas, user2 should see that time stamp recorded as 10:00am.
If there is already a way to do this, please let me know.
-
[Deleted User] commented
I accomplished this for my application with JavaScript. I used getTimezoneOffset() to get local timezone offset and then use setHours to change the time according the offset value. You can find more information about these JavaScript functions at
https://www.w3schools.com/jsref/jsref_gettimezoneoffset.asp
https://www.w3schools.com/jsref/jsref_obj_date.asp -
Josh Jobin commented
This would be amazing. I do not know of a solution for this yet.