From 8b5fb07149b4ab2871b02f9840e033e290e5e55b Mon Sep 17 00:00:00 2001
From: "daniel.naude" <danieln@bob.co.za>
Date: Fri, 17 May 2024 15:33:13 +0200
Subject: [PATCH] Refactor TradingHours struct to fix nextDay on the day before
 last

---
 date_utils/date_utils.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/date_utils/date_utils.go b/date_utils/date_utils.go
index 1e66fe9..2296833 100644
--- a/date_utils/date_utils.go
+++ b/date_utils/date_utils.go
@@ -346,7 +346,7 @@ func (t TradingHours) String() string {
 	for i := 1; i < len(weekdays); i++ {
 		currentDay := weekdays[i]
 		nextDay := currentDay
-		if i+1 < len(weekdays)-1 {
+		if i+1 < len(weekdays) {
 			nextDay = weekdays[i+1]
 		}
 
-- 
GitLab