- remove nextPotentialRun.Add that had no effect
This commit is contained in:
parent
4276594f8d
commit
20d324f5cb
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Copyright 2017-2022 CAcert Inc.
|
||||
Copyright 2017-2023 CAcert Inc.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
@ -47,7 +47,6 @@ func (r *RemindVotersJob) Schedule() {
|
|||
year, month, day := now.Date()
|
||||
|
||||
nextPotentialRun := time.Date(year, month, day+1, 0, 0, 0, 0, time.UTC)
|
||||
nextPotentialRun.Add(hoursInDay * time.Hour)
|
||||
|
||||
relevantDue := nextPotentialRun.Add(reminderDays * hoursInDay * time.Hour)
|
||||
|
||||
|
|
Loading…
Reference in a new issue