Skip to content

Commit f370952

Browse files
codebudeShane32
andauthored
Update QRCoder/PayloadGenerator.cs
Co-authored-by: Shane Krueger <[email protected]>
1 parent 6b17c84 commit f370952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QRCoder/PayloadGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ public class CalendarEvent : Payload
18871887
/// <param name="end">End time (incl. UTC offset) of the event</param>
18881888
/// <param name="allDayEvent">Is it a full day event?</param>
18891889
/// <param name="encoding">Type of encoding (universal or iCal)</param>
1890-
public CalendarEvent(string subject, string description, string location, DateTimeOffset start, DateTimeOffset end, bool allDayEvent, EventEncoding encoding = EventEncoding.Universal) : this(subject, description, location, DateTime.SpecifyKind(start.ToUniversalTime().DateTime, DateTimeKind.Utc), DateTime.SpecifyKind(end.ToUniversalTime().DateTime, DateTimeKind.Utc), allDayEvent, encoding)
1890+
public CalendarEvent(string subject, string description, string location, DateTimeOffset start, DateTimeOffset end, bool allDayEvent, EventEncoding encoding = EventEncoding.Universal) : this(subject, description, location, start.UtcDateTime, end.UtcDateTime, allDayEvent, encoding)
18911891
{
18921892
}
18931893

0 commit comments

Comments
 (0)