Development is in one place and deployment is in another location for a web -application. During development, I used my own location timezone to fetch and persist the date values in the DB(Oracle).
But after deployment, to another location time zone are totally different and date seems to cause a major issue in the course of testing.
This is a simple application wherein I use Java for Backend and Angular 5 for front-end. Data persist is done with Oracle DB.
I am not sure how to handle this time zone difference. Is there any specific way to handle this difference? Any inputs are most welcome.
[EDIT]: So, the requirement is simple - wherever the user logs in the application, he must be able to view the Date and time as per his timezone. Even if the user Creates/Modifies an item, he must be able to view the time as per his timezone.
For Ex: If I am posting a post/status, then the time at my end must show the timezone for my location. Similarly, If I see the same post/status in another geography, then I must see the time respective to that time zone.