@@ -314,7 +314,7 @@ func (c *conn) parseTime(s string) (interface{}, bool) {
314314 ts := strings .TrimSuffix (s , "Z" )
315315
316316 for _ , f := range parseTimeFormats {
317- t , err := time .Parse (f , ts )
317+ t , err := time .ParseInLocation (f , ts , time . UTC )
318318 if err == nil {
319319 return t , true
320320 }
@@ -482,7 +482,6 @@ func (s *stmt) Close() (err error) {
482482
483483// Exec executes a query that doesn't return rows, such as an INSERT or UPDATE.
484484//
485- //
486485// Deprecated: Drivers should implement StmtExecContext instead (or
487486// additionally).
488487func (s * stmt ) Exec (args []driver.Value ) (driver.Result , error ) { //TODO StmtExecContext
@@ -1218,11 +1217,13 @@ func (c *conn) finalize(pstmt uintptr) error {
12181217}
12191218
12201219// int sqlite3_prepare_v2(
1221- // sqlite3 *db, /* Database handle */
1222- // const char *zSql, /* SQL statement, UTF-8 encoded */
1223- // int nByte, /* Maximum length of zSql in bytes. */
1224- // sqlite3_stmt **ppStmt, /* OUT: Statement handle */
1225- // const char **pzTail /* OUT: Pointer to unused portion of zSql */
1220+ //
1221+ // sqlite3 *db, /* Database handle */
1222+ // const char *zSql, /* SQL statement, UTF-8 encoded */
1223+ // int nByte, /* Maximum length of zSql in bytes. */
1224+ // sqlite3_stmt **ppStmt, /* OUT: Statement handle */
1225+ // const char **pzTail /* OUT: Pointer to unused portion of zSql */
1226+ //
12261227// );
12271228func (c * conn ) prepareV2 (zSQL * uintptr ) (pstmt uintptr , err error ) {
12281229 var ppstmt , pptail uintptr
@@ -1277,10 +1278,12 @@ func (c *conn) extendedResultCodes(on bool) error {
12771278}
12781279
12791280// int sqlite3_open_v2(
1280- // const char *filename, /* Database filename (UTF-8) */
1281- // sqlite3 **ppDb, /* OUT: SQLite db handle */
1282- // int flags, /* Flags */
1283- // const char *zVfs /* Name of VFS module to use */
1281+ //
1282+ // const char *filename, /* Database filename (UTF-8) */
1283+ // sqlite3 **ppDb, /* OUT: SQLite db handle */
1284+ // int flags, /* Flags */
1285+ // const char *zVfs /* Name of VFS module to use */
1286+ //
12841287// );
12851288func (c * conn ) openV2 (name string , flags int32 ) (uintptr , error ) {
12861289 var p , s uintptr
0 commit comments