From 87b3585c44a0e90d49cfceac5ed8ab013370d32b Mon Sep 17 00:00:00 2001 From: Brennan Lujan <7959971+blujan@users.noreply.github.com> Date: Fri, 6 Oct 2023 20:20:40 -0700 Subject: [PATCH] Fix use of NOW() when getting tagged posts --- database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.go b/database.go index d238642..2614523 100644 --- a/database.go +++ b/database.go @@ -1320,7 +1320,7 @@ func (db *datastore) GetAllPostsTaggedIDs(c *Collection, tag string, includeFutu timeCondition := "" if !includeFuture { - timeCondition = "AND created <= NOW()" + timeCondition = "AND created <= " + db.now() } var rows *sql.Rows var err error