From 0a114c4436e66faa468da3d704e40ee5ce2c567e Mon Sep 17 00:00:00 2001 From: louis Date: Tue, 11 Jul 2017 17:15:07 +0200 Subject: [PATCH] Fixed loss of time information during string conversion --- src/types/time.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/time.rs b/src/types/time.rs index 42e088d..b8e7dc3 100644 --- a/src/types/time.rs +++ b/src/types/time.rs @@ -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 {