FIX: Copilot requests
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
4ca996cd3f
commit
745435b950
@@ -1004,11 +1004,11 @@ impl Model {
|
|||||||
Ok(s) => s,
|
Ok(s) => s,
|
||||||
Err(e) => return e,
|
Err(e) => return e,
|
||||||
};
|
};
|
||||||
let tz: Tz = match &tz_str.parse() {
|
let tz: Tz = match tz_str.parse() {
|
||||||
Ok(tz) => *tz,
|
Ok(tz) => tz,
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
return CalcResult::Error {
|
return CalcResult::Error {
|
||||||
error: Error::ERROR,
|
error: Error::VALUE,
|
||||||
origin: cell,
|
origin: cell,
|
||||||
message: format!("Invalid timezone: {}", &tz_str),
|
message: format!("Invalid timezone: {}", &tz_str),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user