Skip to content

Commit

Permalink
Fix time in auto roof close service
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhelms committed Mar 12, 2024
1 parent 84f49d0 commit 109de21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Obspi/Services/AutoRoofCloseHostedService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected override async Task OnExecute(AsyncServiceScope scope, CancellationTok
sunrise = TriggerTime;
}

var currentTime = TimeOnly.FromDateTime(now.LocalDateTime);
var currentTime = TimeOnly.FromTimeSpan(now.TimeOfDay);
var normalAlertTime = sunrise.AddMinutes(MinutesPastSunriseNormalPriorityAlert);
var emergencyAlertTime = sunrise.AddMinutes(MinutesPastSunriseEmergencyPriorityAlert);

Expand Down

0 comments on commit 109de21

Please sign in to comment.