Fix use of NOW() when getting tagged posts

This commit is contained in:
Brennan Lujan 2023-10-06 20:20:40 -07:00
parent 4aad0338bf
commit 87b3585c44
1 changed files with 1 additions and 1 deletions

View File

@ -1320,7 +1320,7 @@ func (db *datastore) GetAllPostsTaggedIDs(c *Collection, tag string, includeFutu
timeCondition := "" timeCondition := ""
if !includeFuture { if !includeFuture {
timeCondition = "AND created <= NOW()" timeCondition = "AND created <= " + db.now()
} }
var rows *sql.Rows var rows *sql.Rows
var err error var err error