You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am migrating an app using DDay.Ical to Ical.Net. I never used either of these libraries so I apologize if this is common knowledge, but I can't find anywhere on how to duplicate the below portion of .ics output, specifically the STANDARD sub-component:
BEGIN:VTIMEZONE
TZID:US Mountain Standard Time
BEGIN:STANDARD
DTSTART:20170410T184315Z
TZOFFSETFROM:-0700
TZOFFSETTO:-0700
END:STANDARD
END:VTIMEZONE
Currently, I have this code, which creates a few extra properties, which I believe shouldn't hurt anything.
```
var start = DateTime.Now;
var end = start.AddHours(1);
var tz = new VTimeZone("America/New_York");
var standard = new Todo()
{
Name = Components.Standard,
DtStart = new CalDateTime(start)
};
standard.AddProperty("UTCOFFSETTO", "-0700");
standard.AddProperty("TZOFFSETFROM", "-0700");
tz.Children.Add(standard);
var cal = new Calendar();
cal.AddTimeZone(tz);
var serializer = new CalendarSerializer(new SerializationContext());
var serializedCalendar = serializer.SerializeToString(cal);
return serializedCalendar;
However, I am unsure if this is the best way to go about this. Is this the proper way to achieve the results I seek?
The text was updated successfully, but these errors were encountered:
Hi, I am migrating an app using DDay.Ical to Ical.Net. I never used either of these libraries so I apologize if this is common knowledge, but I can't find anywhere on how to duplicate the below portion of .ics output, specifically the STANDARD sub-component:
Currently, I have this code, which creates a few extra properties, which I believe shouldn't hurt anything.
var start = DateTime.Now;
var end = start.AddHours(1);
The text was updated successfully, but these errors were encountered: