From 2f1b9cd44002cf32b3d1eee717de0a708b2e93b9 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Wed, 29 May 2024 18:10:33 +0200 Subject: [PATCH] Fix time truncation --- .../app/ui/event_tab/event_detail_modal/meal_detail_modal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/app/ui/event_tab/event_detail_modal/meal_detail_modal.rs b/app/src/app/ui/event_tab/event_detail_modal/meal_detail_modal.rs index 224c8a6..d6b3b2d 100644 --- a/app/src/app/ui/event_tab/event_detail_modal/meal_detail_modal.rs +++ b/app/src/app/ui/event_tab/event_detail_modal/meal_detail_modal.rs @@ -77,7 +77,7 @@ impl MealDetail { recipe_filter: Default::default(), place_filter: Default::default(), start_time: InputState::new(start_time[..(start_time.len() - 3)].to_string()), - end_time: InputState::new(end_time[..(start_time.len() - 1)].to_string()), + end_time: InputState::new(end_time[..(end_time.len() - 3)].to_string()), servings: InputState::new(new_meal.servings.to_string()), energy: InputState::new(new_meal.energy.to_string()), comment: InputState::new(new_meal.comment.unwrap_or_default()),