Our goal is to set the timezone on the frontend part to display the dates/times on the timezone that we desire and also get the dates generated from datefields, timefields etc. to be on the same timezone but at the end send the correct timestamp to the server.
Setting the timezone globally to a javascript application is not a trivial task according to this: How to initialize javascript date to a particular timezone
The solutions recommend libraries like momentjs, and please correct me if I am wrong, but this is out of the scope and incompatible with sencha extjs. In other words there are too many time conversions in Models and Components handled by sencha extjs that we cannot bypass.
In addition there is an effort to override the core functionality of Date object of javascript language itself found here: https://github.com/pligor/jstimezoner
While the above works for simple cases when integrated with a sencha extjs application the outcome is a disaster and not recommended.
Is there any configuration that we are missing that enables Sencha ExtJS to display and handle times and dates on a timezone of our choice?
Note that we always send/receive a timestamp to/from the server and therefore there is no issue of timezones there.