Skip to content

Commit c666c79

Browse files
committed
Fix timezone parsing to handle None values gracefully
1 parent 5ffa4dd commit c666c79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/functions/src/datetime/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl ConfiguredTimeZone {
9393
}
9494

9595
pub(crate) fn from_config(config: &ConfigOptions) -> Self {
96-
match Self::parse(&config.execution.time_zone) {
96+
match Self::parse(config.execution.time_zone.as_deref().unwrap_or("")) {
9797
Ok(Some(tz)) => tz,
9898
_ => Self::utc(),
9999
}

0 commit comments

Comments
 (0)