From 471b13b96c1ddd448c0ad9ac6b2c0fd6729aaa6b Mon Sep 17 00:00:00 2001 From: suman chapai Date: Tue, 20 Aug 2024 11:36:24 -0400 Subject: [PATCH] fix: not looking on the nth day, was only looking before that --- cmd/la.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/la.go b/cmd/la.go index d9091f2..5f607c5 100644 --- a/cmd/la.go +++ b/cmd/la.go @@ -29,7 +29,7 @@ var laCmd = &cobra.Command{ } knockEvents := make(KnockEvents, 0) - for i := 0; i < numberOfDaysToLookAhead; i++ { + for i := 0; i <= numberOfDaysToLookAhead; i++ { dateInAD := getDateRelativeToTodayInAD(24 * time.Hour * time.Duration(i)) // Dates for all calendar dates := datesForAllCalendar(dateInAD)