Merge pull request #785 from blujan/develop

Fix use of NOW() when getting tagged posts
This commit is contained in:
Matt Baer 2023-10-11 10:55:51 -04:00 committed by GitHub
commit 3870749e5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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