diff --git a/internal/handler/transaction_handler.go b/internal/handler/transaction_handler.go index 0fa763c..fd1ef67 100644 --- a/internal/handler/transaction_handler.go +++ b/internal/handler/transaction_handler.go @@ -148,6 +148,10 @@ func (h *TransactionHandler) GetTransactions(c *gin.Context) { api.BadRequest(c, "Invalid end_date format. Use YYYY-MM-DD or RFC3339 format") return } + // If input is just a date (YYYY-MM-DD), set it to the end of that day to be inclusive + if len(endDateStr) == 10 { + endDate = time.Date(endDate.Year(), endDate.Month(), endDate.Day(), 23, 59, 59, 999999999, endDate.Location()) + } input.EndDate = &endDate }