Skip to content

Commit

Permalink
Update sqlite3.go
Browse files Browse the repository at this point in the history
change time.UTC() to time.Local()
  • Loading branch information
mrcuix committed Sep 3, 2013
1 parent 73ea0ad commit c97e97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlite3.go
Expand Up @@ -321,7 +321,7 @@ func (s *SQLiteStmt) bind(args []driver.Value) error {
}
rv = C._sqlite3_bind_blob(s.s, n, unsafe.Pointer(p), C.int(len(v)))
case time.Time:
b := []byte(v.UTC().Format(SQLiteTimestampFormats[0]))
b := []byte(v.Local().Format(SQLiteTimestampFormats[0]))
rv = C._sqlite3_bind_text(s.s, n, (*C.char)(unsafe.Pointer(&b[0])), C.int(len(b)))
}
if rv != C.SQLITE_OK {
Expand Down

0 comments on commit c97e97a

Please sign in to comment.