Oracle Analytics Publisher

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Convert UTC to Local Time in Oracle BI Publisher

Received Response
692
Views
4
Comments
Tiger Liu-55147
Tiger Liu-55147 Rank 3 - Community Apprentice

Summary

Convert UTC to Local Time in Oracle BI Publisher

Content

We need to convert UTC time to local time (Sydney) in Oracle BI Publisher XML output in Oracle Cloud ERP.

Since we cannot use BI template to handle the timezone conversion, we need to put this into the SQL.

however, the FROM_TZ doesn't seem to do the conversion at all.

Any idea what I am doing wrong here?

Thanks a lot.

select invoice_id,

last_update_date,

FROM_TZ(last_update_date, DBTIMEZONE)  AT TIME ZONE 'Australia/Sydney' as local_time

from ap_invoices_all

Answers