Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
streetyhk
Contributor II
Contributor II

Connecting to Salesforce - Convert times to local time

Hello,

I have a bulk api connection to Salesforce and my data is loading as I expected aside from the date/time values which are being converted to what I think is EST time.  I (and all my users) are based in Hong Kng time and the records in Salesforce are in Hong King time.  

I have looked around for solutions and they seem to indicate that I should select in the bulk.api settings the 'Convert UTC to local time'

However, when I look at my Bulk api settings, there is no checkbox to select this.  I only have 3 options:
Convert SQL dates
Boolean as strings
PK chunking

Appreciate any guidance on where I can find this setting.
Thank you


Labels (1)
1 Reply
Jason_Dyer
Employee
Employee

Hi Streethyk,

I'm not sure whey you don't see the "Convert UTC to local time" setting in your bulk API connection, but I have reached out to a Qlik internal team for clarification on that point. My understanding is that Salesforce stores dates/times in the database using UTC but can be represented on the end user interface using the user's local time zone. 

In the mean time, can you use the convertolocaltime function in the Qlik load script? https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunc...

This function will convert the date/time value to your end users' local time in the same way that the "Convert UTC to local time" setting would generally work.