Skip to content

Commit 34ad88f

Browse files
committed
chore
1 parent 048a6f1 commit 34ad88f

File tree

1 file changed

+1
-8
lines changed
  • datafusion/functions/src/datetime

1 file changed

+1
-8
lines changed

datafusion/functions/src/datetime/now.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,8 @@ impl ScalarUDFImpl for NowFunc {
119119
.query_execution_start_time
120120
.timestamp_nanos_opt();
121121

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-
129122
Ok(ExprSimplifyResult::Simplified(Expr::Literal(
130-
ScalarValue::TimestampNanosecond(now_ts, Some(timezone.into())),
123+
ScalarValue::TimestampNanosecond(now_ts, self.timezone.clone()),
131124
None,
132125
)))
133126
}

0 commit comments

Comments
 (0)