mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-10-31 13:58:55 +08:00 
			
		
		
		
	Fixed loss of time information during string conversion
This commit is contained in:
		| @@ -3,7 +3,7 @@ extern crate time; | |||||||
| use Result; | use Result; | ||||||
| use types::{FromSql, FromSqlError, FromSqlResult, ToSql, ToSqlOutput, ValueRef}; | use types::{FromSql, FromSqlError, FromSqlResult, ToSql, ToSqlOutput, ValueRef}; | ||||||
|  |  | ||||||
| const SQLITE_DATETIME_FMT: &'static str = "%Y-%m-%d %H:%M:%f %z"; | const SQLITE_DATETIME_FMT: &'static str = "%Y-%m-%d %H:%M:%f"; | ||||||
|  |  | ||||||
| impl ToSql for time::Timespec { | impl ToSql for time::Timespec { | ||||||
|     fn to_sql(&self) -> Result<ToSqlOutput> { |     fn to_sql(&self) -> Result<ToSqlOutput> { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user