Fix ping pong

This commit is contained in:
Joscha 2022-06-30 15:16:27 +02:00
parent 4da132b5bb
commit e1ef195198
3 changed files with 18 additions and 4 deletions

View file

@ -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))
}
}