diff --git a/frontend/src/app.rs b/frontend/src/app.rs index 24c113c..b7afe13 100644 --- a/frontend/src/app.rs +++ b/frontend/src/app.rs @@ -548,18 +548,11 @@ pub fn App() -> Html { String::new() }; - // Convert local times to UTC for backend storage - let start_utc = new_start - .and_local_timezone(chrono::Local) - .unwrap() - .to_utc(); - let end_utc = new_end.and_local_timezone(chrono::Local).unwrap().to_utc(); - - // Format UTC date and time strings for backend - let start_date = start_utc.format("%Y-%m-%d").to_string(); - let start_time = start_utc.format("%H:%M").to_string(); - let end_date = end_utc.format("%Y-%m-%d").to_string(); - let end_time = end_utc.format("%H:%M").to_string(); + // Send local time directly to backend (backend will handle UTC conversion) + let start_date = new_start.format("%Y-%m-%d").to_string(); + let start_time = new_start.format("%H:%M").to_string(); + let end_date = new_end.format("%Y-%m-%d").to_string(); + let end_time = new_end.format("%H:%M").to_string(); // Convert existing event data to string formats for the API let status_str = match original_event.status {