update deps

This commit is contained in:
2024-04-16 22:28:51 +02:00
parent 79103c6712
commit d6f069d4a5
11 changed files with 1104 additions and 901 deletions

View File

@ -28,8 +28,8 @@ pub fn migrate(db: &mut Db) -> Result<(), MigrationError> {
// Convert to new value
let v2_value = v2::trees::session::V {
category,
started: DateTime::<Utc>::from_utc(started, Utc).into(),
ended: DateTime::<Utc>::from_utc(ended, Utc).into(),
started: DateTime::<Utc>::from_naive_utc_and_offset(started, Utc).into(),
ended: DateTime::<Utc>::from_naive_utc_and_offset(ended, Utc).into(),
deleted: false,
};
@ -63,7 +63,8 @@ pub fn migrate(db: &mut Db) -> Result<(), MigrationError> {
name,
description: None,
color,
started: started.map(|ndt| DateTime::<Utc>::from_utc(ndt, Utc).into()),
started: started
.map(|ndt| DateTime::<Utc>::from_naive_utc_and_offset(ndt, Utc).into()),
parent: None,
deleted: false,
};