Fix ping pong
This commit is contained in:
parent
4da132b5bb
commit
e1ef195198
3 changed files with 18 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ impl ToSql for Time {
|
|||
impl FromSql for Time {
|
||||
fn column_result(value: ValueRef<'_>) -> rusqlite::types::FromSqlResult<Self> {
|
||||
let timestamp = i64::column_result(value)?;
|
||||
Ok(Self(Utc.timestamp(timestamp, 0)))
|
||||
Ok(Self::new(timestamp))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue