mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
Add back missing type to make hardware happy for now
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user