I am using Google TimeZone API to give me the UTC offset based on an address. For instance for the city Lima it returns -18000 seconds.
How can I use this info in the DateTimeOffset and get it to only change it's Offset property accounting the difference in seconds, so that it shows current time, but where the Offset changes like this?
DateTime = {12-01-2020 21:15:33} => DateTimeOffset = {12-01-2020 21:15:33 -05:00}
And for Paris it should +01:00 in the Offset property.
DateTimeOffset. Have you tried it yet? Did something not meet your expectations? - Matt Johnson-Pint