Fix use of NOW() when getting tagged posts
This commit is contained in:
parent
4aad0338bf
commit
87b3585c44
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue