Fixed loss of time information during string conversion

This commit is contained in:
louis 2017-07-11 17:15:07 +02:00
parent 0d001583b2
commit 0a114c4436

View File

@ -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:%f %z";
const SQLITE_DATETIME_FMT: &'static str = "%Y-%m-%d %H:%M:%f";
impl ToSql for time::Timespec {
fn to_sql(&self) -> Result<ToSqlOutput> {