Fix SQLite date format string

The formatted string was invalid before, causing date parsing to fail.
This fixes that.

Ref T529
pull/45/head
Matt Baer 6 years ago
parent bc1b3fdfb7
commit 6f4c004e8c
  1. 2
      database.go

@ -108,7 +108,7 @@ type datastore struct {
func (db *datastore) now() string {
if db.driverName == driverSQLite {
return "strftime('%Y-%m-%d %H-%M-%S','now')"
return "strftime('%Y-%m-%d %H:%M:%S','now')"
}
return "NOW()"
}

Loading…
Cancel
Save