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:
Mo Tarbin 2025-01-20 21:17:36 -05:00
parent de24fd5395
commit 40f51ce783
5 changed files with 376 additions and 423 deletions

View file

@ -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{