From 745435b950d687edd90486961fb1fa5f4e0affa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hatcher?= Date: Fri, 28 Nov 2025 20:18:47 +0100 Subject: [PATCH] FIX: Copilot requests --- base/src/functions/date_and_time.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/src/functions/date_and_time.rs b/base/src/functions/date_and_time.rs index f4284dd..742b0ff 100644 --- a/base/src/functions/date_and_time.rs +++ b/base/src/functions/date_and_time.rs @@ -1004,11 +1004,11 @@ impl Model { Ok(s) => s, Err(e) => return e, }; - let tz: Tz = match &tz_str.parse() { - Ok(tz) => *tz, + let tz: Tz = match tz_str.parse() { + Ok(tz) => tz, Err(_) => { return CalcResult::Error { - error: Error::ERROR, + error: Error::VALUE, origin: cell, message: format!("Invalid timezone: {}", &tz_str), }