diff --git a/pkg/datasource/schedule_with_details.go b/pkg/datasource/schedule_with_details.go index c53a33f..4bd2c36 100644 --- a/pkg/datasource/schedule_with_details.go +++ b/pkg/datasource/schedule_with_details.go @@ -138,7 +138,7 @@ func (schedule *Schedule) UpdateNextReportTime() { reportTime = reportTime.AddDate(0, 1, daysOffset) } case 2: // fortnightly - if scheduleDays == int(reportTime.Weekday()) { + if scheduleDays == int(reportTime.Day()) { reportTime = reportTime.AddDate(0, 0, 14) } else { daysToAdd := (scheduleDays - int(reportTime.Day()) + 14) % 14