Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Talk to Experts, a LIVE Q&A Webinar. Bring your Qlik Sense Business questions on Aug. 4th. Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
Partner
Partner

Re: Qliksense adding hours to date/time field

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

Highlighted
Creator III
Creator III

Re: Qliksense adding hours to date/time field

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