Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
markp201
Creator III
Creator III

Qliksense adding hours to date/time field

We have a postgre connection and noticed that qliksense is adding 4 hours to a datetime field (type timestamptz).

SELECT approval_date from vehicles.

The 4 hours are added without instruction in the query.  Is this a default behaviour?  Does it have to do with our local time zone ?

Trying to determine if this is a database or qliksense issue.

Thanks

 

Labels (3)
2 Replies
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

you can do this in Qlik Sense to get rid of the timestamp part:

Load date(floor(approval_date)) as approval_date;

SELECT approval_date from vehicles.

 

just make sure that the system variable "DateFormat" is set to your desired format (Depending on your windows configuration it can be MM/DD/YYYY, DD/MM/YYYY, and so on),

 

regards

markp201
Creator III
Creator III
Author

Didn't work.  Qliksense is adding 4 hours.  When we query the database directly (dbeaver, datagrip) we get the correct date/time