Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thedmdim committed May 14, 2024
1 parent 92ed377 commit 9d35f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/handlers/random_hander.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (sc *SearchCriteria) CheckVideo(video *Video) bool {
}
}
if yearTo, err := strconv.Atoi(sc.YearsTo); err == nil {
if video.UploadedAt > time.Date(yearTo, time.January, 1, 0, 0, 0, 0, time.UTC).Unix() {
if video.UploadedAt > time.Date(yearTo, time.December, 31, 0, 0, 0, 0, time.UTC).Unix() {
return false
}
}
Expand Down

0 comments on commit 9d35f8b

Please sign in to comment.