Goal
In Virtual DataPort any view created is automatically available as a RESTful Web Service which can be consumed from a web browser or any other external client/application. The datetime information for this web service is displayed by default in GMT time zone. This article explains how to modify the datetime display from GMT time zone to another timezone.
Content
By default, the Denodo RESTful web service uses the default i18n map “rfc_restful” and it is set to display fields with datetime information in GMT timezone. However, it is possible to modify the timezone of the RESTful web service by editing the following file:
<DENODO_HOME>/resources/apache-tomcat/webapps/denodo-restfulws/WEB-INF/other_settings.xml
Adding the below environment entry:
<env-entry> <env-entry-name>timezone</env-entry-name> <env-entry-type>java.lang.String</env-entry-type> <env-entry-value>PST</env-entry-value> </env-entry> |
In the above entry you can replace “PST” with the desired time zone and finally restart the VDP server to reflect the changes made. Valid values for the timezone will be those timezone ids available in Java that can be obtained through the method java.util.TimeZone.getAvailableIDs.
The information provided in the Denodo Knowledge Base is intended to assist our users in advanced uses of Denodo. Please note that the results from the application of processes and configurations detailed in these documents may vary depending on your specific environment. Use them at your own discretion.
For an official guide of supported features, please refer to the User Manuals. For questions on critical systems or complex environments we recommend you to contact your Denodo Customer Success Manager.