Fetching Server Timezone

Hi All,

Consider we have server in different timezone and client in different timezone and we need to format the date using server timezone.

utils.dateFormat(date, format, Servertimezone)

I have searched documentation to get Server Timezone but no results. It might be possible that I have missed this while searching.

Any help will be highly appreciated.

Thanks

Try:

var serverTimeZone = java.util.TimeZone.getDefault();
...

Java-Code will be executed on the Server (at least with NG, not sure in SmartClient). This way you should get the timezone of your server where your client is running on.

Regards
Roland