Skip to content

Commit 8e5ba57

Browse files
authored
Merge pull request #3 from BOTbkcd/dev
Fixed recur tasks updation for start time changes
2 parents 476062a + b94d95d commit 8e5ba57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tui/model_input_form.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ func spawnRecurTasks(task entities.Task, oldDeadline time.Time) {
324324
t := time.Now()
325325

326326
if t.Before(oldDeadline) {
327-
startTime = r.Deadline
327+
startTime = time.Date(r.Deadline.Year(), r.Deadline.Month(), r.Deadline.Day(), task.StartTime.Hour(), task.StartTime.Minute(), 0, 0, task.StartTime.Location())
328328
} else {
329329
startTime = time.Date(t.Year(), t.Month(), t.Day(), task.StartTime.Hour(), task.StartTime.Minute(), 0, 0, task.StartTime.Location())
330330
}

0 commit comments

Comments
 (0)