119
Views
2
Comments
[Geo] Can't convert Date between timezones
Question
geo
Web icon
Forge asset by Geo Team

When I use this Timezone_ConvertTimezoneById the extension is throwing at me the following exception:

The conversion could not be completed because the supplied DateTime did not have the Kind property set correctly.  For example, when the Kind property is DateTimeKind.Local, the source time zone must be TimeZoneInfo.Local.
Parameter name: sourceTimeZone


I'm running this on my Personal and trying to understand where should I tweak to make this work :) 


here are some screenshots
Service Center

Service Studio

Why I need to convert: In the front end I'm selecting a full day and the date-time in the server is offset by 1 hour. So, When I select Oct 21, it gives me the Oct 20.

2019-11-12 17-31-26
Justin James
 
MVP

What timezone is your server in?

J.Ja

2020-02-21 13-39-55
João Franco

It is my personal, so its UTC. This problem is happening because the date is being converted due to daylight saving.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.