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