@@ -9,20 +9,20 @@ namespace Api.Database.Models
99 public class AutoScheduleFrequency
1010 {
1111 [ Required ]
12- // In local time
13- public IList < TimeOnly > TimesOfDay { get ; set ; } = new List < TimeOnly > ( ) ;
12+ // In Central European Time
13+ public IList < TimeOnly > TimesOfDayCET { get ; set ; } = new List < TimeOnly > ( ) ;
1414
1515 [ Required ]
1616 public IList < DayOfWeek > DaysOfWeek { get ; set ; } = new List < DayOfWeek > ( ) ;
1717
1818 public bool HasValidValue ( )
1919 {
20- return TimesOfDay . Count != 0 && DaysOfWeek . Count != 0 ;
20+ return TimesOfDayCET . Count != 0 && DaysOfWeek . Count != 0 ;
2121 }
2222
2323 public void ValidateAutoScheduleFrequency ( )
2424 {
25- if ( TimesOfDay . Count == 0 )
25+ if ( TimesOfDayCET . Count == 0 )
2626 {
2727 throw new ArgumentException (
2828 "AutoScheduleFrequency must have at least one time of day"
@@ -53,7 +53,7 @@ public void ValidateAutoScheduleFrequency()
5353 if ( DaysOfWeek . Contains ( nowLocal . DayOfWeek ) )
5454 {
5555 autoScheduleNext . AddRange (
56- TimesOfDay
56+ TimesOfDayCET
5757 . Where ( time =>
5858 ( time >= nowLocalTimeOnly )
5959 && ( time - nowLocalTimeOnly <= timeTilUtcMidnight )
@@ -64,7 +64,7 @@ public void ValidateAutoScheduleFrequency()
6464 if ( DaysOfWeek . Contains ( nowLocal . AddDays ( 1 ) . DayOfWeek ) )
6565 {
6666 autoScheduleNext . AddRange (
67- TimesOfDay
67+ TimesOfDayCET
6868 . Where ( time =>
6969 ( time < nowLocalTimeOnly )
7070 && ( time - nowLocalTimeOnly <= timeTilUtcMidnight )
0 commit comments