mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
Fix the span of "invalid time zone" (#6411)
Signed-off-by: nibon7 <nibon7@163.com> Signed-off-by: nibon7 <nibon7@163.com>
This commit is contained in:
parent
e45b169cba
commit
7b07e976b8
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ fn _to_timezone(dt: DateTime<FixedOffset>, timezone: &Spanned<String>, span: Spa
|
|||
match datetime_in_timezone(&dt, timezone.item.as_str()) {
|
||||
Ok(dt) => Value::Date { val: dt, span },
|
||||
Err(_) => Value::Error {
|
||||
error: ShellError::UnsupportedInput(String::from("invalid time zone"), span),
|
||||
error: ShellError::UnsupportedInput(String::from("invalid time zone"), timezone.span),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue