Fix timezone handling in completeChore and correct frequency type constants
Add Tests for scheduler Build on PR and run tests
This commit is contained in:
parent
de24fd5395
commit
40f51ce783
5 changed files with 376 additions and 423 deletions
|
@ -1025,7 +1025,7 @@ func (h *Handler) completeChore(c *gin.Context) {
|
|||
}
|
||||
|
||||
} else {
|
||||
nextDueDate, err = scheduleNextDueDate(chore, completedDate)
|
||||
nextDueDate, err = scheduleNextDueDate(chore, completedDate.UTC())
|
||||
if err != nil {
|
||||
log.Printf("Error scheduling next due date: %s", err)
|
||||
c.JSON(500, gin.H{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue