Timezone Configuration
Hi Guys,
I'm connecting a PostgreSQL database to Dataiku DSS and importing tables as datasets.
In PostgreSQL, my timestamp values are stored or displayed using the WIB (Waktu Indonesia Barat) timezone (UTC+7). However, when I load the dataset into Dataiku DSS, the datetime columns are displayed in UTC (UTC+0), resulting in a 7-hour difference from the original local time representation.
I understand that Dataiku DSS handles datetime-with-zone values internally and displays them in UTC. However, I would like to know whether there is a configuration that allows Dataiku to automatically interpret or display these timestamps in the Asia/Jakarta timezone.
My current workaround is to use a Prepare recipe to transform datetime columns individually. This becomes time-consuming when tables contain many datetime columns or when the same approach must be applied across multiple datasets.
Dataiku version used: 14.7
Answers
-
DSS displays "datetimes with zone" in UTC; there is no setting to switch their display to a different time zone:
However, there are options to avoid transforming every column individually. The appropriate approach depends on the PostgreSQL column type.
1. If your columns are timestamp without time zoneIn the dataset’s Settings → Connection → Date & Time handling, set Read SQL to “datetime without timezone” as Datetime no tz. This applies to the relevant columns throughout the dataset and preserves their local date/time values without converting them to UTC. DSS calls this “As is” in the SQL date handling documentation. The Datetime no zone documentation states that this type represents a local date and time without a time zone.
If you need DSS to interpret these values as absolute instants recorded in Jakarta, choose "Datetime with tz" and set the Assumed time zone to Asia/Jakarta. The resulting values will still display in UTC, though.
The default assumed time zone can also be configured at the connection level, so it applies to new datasets by default, and you don't have to repeat the previous step each time. It does not retroactively change existing datasets.
2. If your columns are timestamp with time zone (timestamptz)
The assumed-timezone settings do not apply, because these values already identify an instant. To obtain Jakarta local datetimes, you can centralise the conversion in a PostgreSQL view and read that instead (i.e., create new columns using PostgreSQL's AT TIME ZONE). Configure DSS to read those new columns as Datetime no tz, using the setting above. A SQL query dataset could achieve a similar result, if you wish to explore that option.
