ical-dotnet

Is it possible to use UTC Offset instead of timezone name on iCal.net?

我怕爱的太早我们不能终老 提交于 2019-12-12 17:07:46
问题 My application stores the UTC offset on users profile (-03:00, for instance) and as this page from iCal.net Wiki mentions it seems that I can only use the timezone to assign to the event: https://github.com/rianjs/ical.net/wiki/Working-with-time-zones. Do I have any other option? 回答1: ical.net uses NodaTime under the hood to do time zone conversions, which means you can use the Etc/GMT family of zones. Wikipedia has a nice list. In your case, you would specify a time zone of Etc/GMT-3 : const