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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

LocalTime Error !

When I use LocalTime(), it gives the current time and date of my system. My time zone is GMT+05:30 as per TimeZone() function.

When I used

ConvertoLocalTime(LocalTime(),'GMT+05:30')

I get a different time than my current time.

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     What it does is, it adds the time difference in the date you pass.

     So in your case it must be showing the +5:30 hr more than your local time.

     Try this.

     =ConvertToLocalTime(UTC(), 'GMT+05:30')

Regards,

Kaushik Solanki 

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

It Worked.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Kindly close the post, by marking this as Correct Answer

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!