mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -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 string Name { get; set; }
|
||||||
public DateTimeOffset Date { get; set; }
|
public DateTimeOffset Date { get; set; }
|
||||||
|
public string Type { get; set; }
|
||||||
public bool IsToday { get; set; }
|
public bool IsToday { get; set; }
|
||||||
public Duration DurationUntil { get; set; }
|
public Duration DurationUntil { get; set; }
|
||||||
|
|
||||||
@@ -11,6 +12,7 @@ public class HolidayEntry
|
|||||||
{
|
{
|
||||||
Name = calendarEntry.Summary;
|
Name = calendarEntry.Summary;
|
||||||
Date = TimeZoneInfo.ConvertTime(calendarEntry.Start, timeZoneInfo).Subtract(timeZoneInfo.GetUtcOffset(calendarEntry.Start));
|
Date = TimeZoneInfo.ConvertTime(calendarEntry.Start, timeZoneInfo).Subtract(timeZoneInfo.GetUtcOffset(calendarEntry.Start));
|
||||||
|
Type = "public";
|
||||||
IsToday = Date.Date == DateTimeOffset.UtcNow.Date;
|
IsToday = Date.Date == DateTimeOffset.UtcNow.Date;
|
||||||
DurationUntil = new Duration(Date);
|
DurationUntil = new Duration(Date);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user