Display DateTime in one specific timezone irrespective of users location
Hi, I’m trying to display DateTime in one specific timezone irrespective of user's location. For this, I set Pacific timezone as default setting in my project. Also I set the same timezone for the user in Accounts entity. Now I try to save current datetime in database and when I try to display it then Singapore time is displayed because I am in Singapore and the same is set in the browser. I think its always picking up the timezone of my browser, probably because in the entity I have set Localize ON for the datetime field. But if I turn it OFF then UTC time is displayed. All I want is to display time in PST forever. My requirement is to store the current datetime in UTC format in database, but always display the time to the user in pacific time (no matter where the user is located) I’d appreciate some help on this. Thanks.
Per attribute of type Date and time you can specify whether you want the date and time to be localized. Both localized and non-localized attributes are stored in UTC but only localized attributes are shown in the time zone of the user when displaying (or picking) their value, for example in the client or in generated documents.
Set the default time zone in Settings/Runtime
Chris de Gelder
Hi...You can set default time zone under project Security….>Runtime tab.
Anybody has got any other idea to solve this issue?