I need to display date/time values in an NG client as GMT(BST) no matter what timezone my user is located in but seem totally unable to do this.
My scenario is this:
DB: PostgreSQL Field: Timestamp without timezone
Server: TImezone is set to ‘Europe/London’
I am in the UK and use the NG client to enter a date/time into the system 20 Mar 2019 13:30:00. It is stored in the DB as the GMT date time I entered. I display it on the screen and it shows the correct date/time (20 Mar 2019 13:30:00). I now “fly” to Australia (Perth) and bring up the same record but the date/time displayed is the one I entered but converted to the browsers local timezone so I see 20 Mar 2019 21:30:00 displayed on the screen
I tried using i18n.setTimeZone(‘Europe/London’) when the user logs in but I get an error in the log that says:
WARN com.servoy.j2db.util.Debug - Setting TimeZone on NG client is not allowed
at eval:0
This is despite the documentation saying that this function is supported in the NG client:
[attachment=0]timezone.png[/attachment]
Can anyone suggest how I can achieve what I want please?
Thanks
Steve