Qlik Community

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
QlikWorld 2022, LIVE in Denver CO., May 16-19, 2022. REGISTER NOW TO RECEIVE EARLY BIRD PRICING
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
Partner

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