Change $currentUser/User_TimeZone at runtime

0
Hi All, Am stuck with this problem for quite sometime. I want to understand if we can set the $currentUser/User_TimeZone at runtime based on the value. As of now am able to create the timezone object like below :     And setting this as below :     This is how the variables are looking :       But it doesnt seem to be working.
asked
2 answers
0

Firstly, retrieve current timezone of user:

 

 

 

 

 

 

 

 

 

Second, change that object of current user timezone:

 

 

 

 

 

 

I think what you are missing is to Commit & Refresh in client!

 

 

 

 

 

 

 

 

Note: This will set the new timezone only to your current user.

answered
0

The above steps will change you timezone but you will not be able to see updated time as per new timezone.

This is because the current user session is not updated when you update timezone.

Try changing the timezone, then logout and login again. Time will now update!! HAHA :D

answered