Localization of RESTful web services

Applies to: Denodo 8.0 , Denodo 7.0 , Denodo 6.0
Last modified on: 26 May 2020
Tags: Web Services i18n

Download document

You can translate the document:

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.

Questions

Ask a question
You must sign in to ask a question. If you do not have an account, you can register here

Featured content

DENODO TRAINING

Ready for more? Great! We offer a comprehensive set of training courses, taught by our technical instructors in small, private groups for getting a full, in-depth guided training in the usage of the Denodo Platform. Check out our training courses.

Training