Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
ChannaK
Creator
Creator

Now() local time

I am Using Qlik Sense SaaS 

in one of my chart i use Now() function it showing server location UTC

but is there a way that shows user profile time not server time

if person is in UK UK time US US time ?

Labels (2)
2 Solutions

Accepted Solutions
Daniele_Purrone
Support
Support

Hi @ChannaK 

ConvertToLocalTime(Now(), GetUserAttr('userZoneinfo')) 

should do the trick!

 

Please note: we recommend using Now(0) or Now(2) to avoid constant recalculations. Using Now() might have an impact when using analyzer capacity licenses.

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

Daniele_Purrone
Support
Support

Instead than using a fixed timezone, you need to get it dynamically with GetUserAttr('userZoneinfo'), as mentioned in my previous answer:

ConvertToLocalTime(Now(), GetUserAttr('userZoneinfo'))

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

3 Replies
Daniele_Purrone
Support
Support

Hi @ChannaK 

ConvertToLocalTime(Now(), GetUserAttr('userZoneinfo')) 

should do the trick!

 

Please note: we recommend using Now(0) or Now(2) to avoid constant recalculations. Using Now() might have an impact when using analyzer capacity licenses.

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.
ChannaK
Creator
Creator
Author

Hi @Daniele_Purrone 

thank you very much for speed response

i am using some thing like this , this is fine

ConvertToLocalTime(now(), 'Berlin', False())

what happens if person see from UK or USA

 

Daniele_Purrone
Support
Support

Instead than using a fixed timezone, you need to get it dynamically with GetUserAttr('userZoneinfo'), as mentioned in my previous answer:

ConvertToLocalTime(Now(), GetUserAttr('userZoneinfo'))

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.