From 143492e424bbea43eb9857eee33c9bf9b9a069e8 Mon Sep 17 00:00:00 2001 From: thedmdim Date: Mon, 13 May 2024 09:02:47 +0400 Subject: [PATCH] small changes --- app/handlers/random_hander.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/handlers/random_hander.go b/app/handlers/random_hander.go index cc6038d..d5e1ab1 100644 --- a/app/handlers/random_hander.go +++ b/app/handlers/random_hander.go @@ -91,7 +91,7 @@ func (sc *SearchCriteria) MakeWhere() string { conditions = append(conditions, fmt.Sprintf("uploaded >= %d", timestamp)) } if year, err := strconv.Atoi(sc.YearsTo); err == nil { - timestamp := time.Date(year, time.January, 1, 0, 0, 0, 0, time.UTC).Unix() + timestamp := time.Date(year, time.December, 31, 0, 0, 0, 0, time.UTC).Unix() conditions = append(conditions, fmt.Sprintf("uploaded <= %d", timestamp)) } if sc.Horizonly {