From d79a5ff188189193526afd5e358fe7bc691b054e Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 11 Sep 2020 12:38:23 -0400 Subject: [PATCH] oops, reversed dates --- database.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database.go b/database.go index c8dcedc..2b0d337 100644 --- a/database.go +++ b/database.go @@ -236,8 +236,8 @@ func gethonksfromlongago(userid int64, wanted int64) []*Honk { now := time.Now().UTC() now = time.Date(now.Year() - 1, now.Month(), now.Day(), now.Hour(), now.Minute(), now.Second(), 0, now.Location()) - dt1 := now.Add(12 * time.Hour).Format(dbtimeformat) - dt2 := now.Add(-36 * time.Hour).Format(dbtimeformat) + dt1 := now.Add(-36 * time.Hour).Format(dbtimeformat) + dt2 := now.Add(12 * time.Hour).Format(dbtimeformat) rows, err := stmtHonksFromLongAgo.Query(wanted, userid, dt1, dt2, userid) return getsomehonks(rows, err) }