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 23afeac commit 8bcc43cCopy full SHA for 8bcc43c
airbyte_cdk/sources/declarative/interpolation/macros.py
@@ -177,7 +177,8 @@ def format_datetime(
177
dt_datetime = (
178
datetime.datetime.strptime(dt, input_format) if input_format else str_to_datetime(dt)
179
)
180
- dt_datetime = dt_datetime.replace(tzinfo=pytz.utc)
+ if dt_datetime.tzinfo is None:
181
+ dt_datetime = dt_datetime.replace(tzinfo=pytz.utc)
182
return DatetimeParser().format(dt=dt_datetime, format=format)
183
184
0 commit comments