A user(mobile app) sends me the current login time and I am converting it to the specific time zone, like in indian time 12:55:34 GMT+0530 (India Standard Time). When I am passing India Standard Time to TimeZoneInfo
it executes perfectly, but when I am passing only IST it throws this error:
The time zone id was not found on the local computer.
So how do I convert this IST to Indian standard time :( because some users send me zone abbreviation ie. 12:55:34 GMT+0530 (IST) :(
DateTime targetTime = TimeZoneInfo.ConvertTimeToUtc(datetime, userzone);