Hi Everyone,
I currently have a block on my project. I need to know what TimeZone a client is at but when I use it in the module where I need to get the TimeZone, it keeps giving me UTC.
I have two modules from Two different Apps, same environment. Both of these modules have the TimeZone forge component as a dependency.
On the first module (AccountDetail), I created a test screen with "Anonymous" role ticked.
When I open the test screen in the browser, it shows me the correct Time Zone of where I'm currently at, New Zealand
I also created a test screen in another module (ClaimsPortal), it also has the "Anonymous" role checked.
But when I open the test screen on the browser, it keeps giving me the UTC TimeZone.
I am so confused because both of these screens are built in exactly the same way, the only difference is that they're in different modules/apps but they're in the same environment. I took a look at the TimeZone component and I saw that GetClientTimeZone() simply gets the TimeZone stored in the ClientTimeZoneIdentifier Session variable. As to how or where Outsystems gets the values from that variable, I have no idea. I tried doing the find usages and scoured the component but it does not show me where it gets the value. I just want to consistently get the current TimeZone of my user in the app no matter what module/screen they use. Please help me out. Thanks!