Add back missing type to make hardware happy for now

This commit is contained in:
2024-12-18 12:53:51 -05:00
parent dc72f71e91
commit 9ccc4ec9de

View File

@@ -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);
}