I am facing this issue in Ical.Net Version=4.0.1.0 and lower, When we get "GMT-0500" in DTSTART/DTEND then it is giving same utc time as local time in AsUtc. But If I replace "GMT-0500" to "Canada/Eastern" manually in ics its giving correct utc time in AsUtc.
Following is not working fine -:
DTSTART;TZID=GMT-0500:20181213T190000
DTEND;TZID=GMT-0500:20181213T220000
Following works fine -:
DTSTART;TZID=Canada/Eastern:20181213T190000
DTEND;TZID=Canada/Eastern:20181213T220000
GMT-0500
isn't a valid IANA time zone. Here's the list of IANA time zones. You wantEtc/GMT+5
.Canada/Eastern
is deprecated. I suggest you useAmerica/Toronto
instead.In general, I suggest you familiarize yourself with the actual time zone names instead of guessing as to what they might be, and hoping for the best.
There were also some bugs with caching
AsUtc
values, as I noted in the release notes. I suggest upgrading to 4.latest. It should be backwards compatible.