fix retard

This commit is contained in:
csehviktor
2025-07-15 03:08:33 +02:00
parent 9e9b619555
commit e778f7934e

View File

@@ -44,7 +44,7 @@ impl TryFrom<&Row<'_>> for UptimeStorageModel {
type Error = rusqlite::Error; type Error = rusqlite::Error;
fn try_from(row: &Row) -> Result<Self, Self::Error> { fn try_from(row: &Row) -> Result<Self, Self::Error> {
let first_seen = DateTime::parse_from_rfc3339(&row.get::<_, String>(2)?) let first_seen = DateTime::parse_from_rfc3339(&row.get::<_, String>(1)?)
.map(|dt| dt.with_timezone(&Utc)) .map(|dt| dt.with_timezone(&Utc))
.map_err(|e| { .map_err(|e| {
rusqlite::Error::FromSqlConversionFailure( rusqlite::Error::FromSqlConversionFailure(