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.
![](https://secure.gravatar.com/avatar/e74e940f9c9c3a74be390ec8ffa79191?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
[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.