Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
therealdees
Creator III
Creator III

Alternatives to ConvertToTimezone

Hi!

I have this dashboard that is used to fire some reports by e-mail and it comes a time of the day that Qlik's server doesn't match my country's time and I get wrong outputs.

I got around it using ConvertToLocalTime(UTC(), 'UTC-03:00') in my expressions, but it seems this function is constantly updated and it glitches my app, specially the scrolling bars.

I'm actually surprised we can't set out timezones in the management console and I assume it's something on the roadmap. Meanwhile, is there a workaround that won't use that much processing?

If I add the value to a variable on script level and then calculate the variable inside my expressions, will it result in the same behavior as using them directly?

Labels (2)
2 Solutions

Accepted Solutions
TcnCunha_M
Creator III
Creator III

what I could suggest is to create a table on that data model, with the timezones you need then use that particular field and use in your report base by with country you are sending.

As you think, so shall you become.

View solution in original post

marcus_sommer

Not by choosing 0 or 2 as timer_mode:

Argument Description
timer_mode

Can have the following values:

0 (time at last finished data load)
1 (time at function call)
2 (time when the app was opened)

 

View solution in original post

6 Replies
TcnCunha_M
Creator III
Creator III

what I could suggest is to create a table on that data model, with the timezones you need then use that particular field and use in your report base by with country you are sending.

As you think, so shall you become.
marcus_sommer

Maybe now() is an alternatively for utc() as it provides a time_mode paramter:

now - script and chart function | Qlik Cloud Help

therealdees
Creator III
Creator III
Author

Hi, it seems to be a good idea, will sure have a try. Thanks for replying.

therealdees
Creator III
Creator III
Author

Hi, Marcus

 

Thanks for the reply.

 

Wouldn't Now() have the same behavior of being constantly recalculated?

marcus_sommer

Not by choosing 0 or 2 as timer_mode:

Argument Description
timer_mode

Can have the following values:

0 (time at last finished data load)
1 (time at function call)
2 (time when the app was opened)

 

therealdees
Creator III
Creator III
Author

This will definitely work!! Thank you very much @marcus_sommer.