From 9ccc4ec9de77211208dedd01a05737a6447538a9 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Wed, 18 Dec 2024 12:53:51 -0500 Subject: [PATCH] Add back missing type to make hardware happy for now --- Calendar/Service/Models/HolidayEntry.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Calendar/Service/Models/HolidayEntry.cs b/Calendar/Service/Models/HolidayEntry.cs index 6ac8737..11d49c8 100644 --- a/Calendar/Service/Models/HolidayEntry.cs +++ b/Calendar/Service/Models/HolidayEntry.cs @@ -4,6 +4,7 @@ public class HolidayEntry { public string Name { get; set; } public DateTimeOffset Date { get; set; } + public string Type { get; set; } public bool IsToday { get; set; } public Duration DurationUntil { get; set; } @@ -11,6 +12,7 @@ public class HolidayEntry { Name = calendarEntry.Summary; Date = TimeZoneInfo.ConvertTime(calendarEntry.Start, timeZoneInfo).Subtract(timeZoneInfo.GetUtcOffset(calendarEntry.Start)); + Type = "public"; IsToday = Date.Date == DateTimeOffset.UtcNow.Date; DurationUntil = new Duration(Date); }