all repos — honk @ 2230037fafe6c01f7491fe757485a786d28e1cfb

my fork of honk

oops, reversed dates
Ted Unangst tedu@tedunangst.com
Fri, 11 Sep 2020 12:38:23 -0400
commit

2230037fafe6c01f7491fe757485a786d28e1cfb

parent

a880022418f6cecd26999eafdad9d3a4420fb265

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M database.godatabase.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) }