Hello All,
I have an application where I used datetime component. When user selects any date and time it shows the correct time based on users profile setting but when user sets IST as there timezone then it shows the time which is 30 minutes less. It works fine for all other timezones. Any suggestion about this issue?
Discussion posts and replies are publicly visible
I'm not familiar with any timezone issues like this, but if the issue is happening consistently with the IST timezone and it is always 30 minutes off, could you handle the exception with an expression rule? If the user's time zone is an available input on the form where they are entering the datetime, you could add 30 minutes to the saved value if IST. This doesn't address why this timezone specifically is off, but it might work as a band-aid solution.
load( local!date:todatetime(now()), local!timeZone:"IST", local!adjustedDate:if(local!timeZone="IST",local!date+minute(30),local!date), local!adjustedDate )
IST is 5:30 hours ahead of UTC. Are you seeing that offset as +5 hours instead? Does it only affect the datetime component or are other time related components / functions also affected? Here is an output of now() for me when my profile is set to IST:
It matches the expected time that I double checked https://www.timeanddate.com/time/zones/ist for.