We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 048a6f1 commit 34ad88fCopy full SHA for 34ad88f
datafusion/functions/src/datetime/now.rs
@@ -119,15 +119,8 @@ impl ScalarUDFImpl for NowFunc {
119
.query_execution_start_time
120
.timestamp_nanos_opt();
121
122
- let timezone = info
123
- .execution_props()
124
- .config_options
125
- .as_ref()
126
- .map(|opts| opts.execution.time_zone.as_str())
127
- .unwrap_or("+00");
128
-
129
Ok(ExprSimplifyResult::Simplified(Expr::Literal(
130
- ScalarValue::TimestampNanosecond(now_ts, Some(timezone.into())),
+ ScalarValue::TimestampNanosecond(now_ts, self.timezone.clone()),
131
None,
132
)))
133
}
0 commit comments