Skip to content

Commit 95bebbd

Browse files
fix: use datetime.timezone instead of pytz
1 parent 383ebb3 commit 95bebbd

File tree

1 file changed

+1
-1
lines changed
  • airbyte_cdk/sources/declarative/interpolation

1 file changed

+1
-1
lines changed

airbyte_cdk/sources/declarative/interpolation/macros.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def timestamp_to_datetime(ts: Union[int, float, str]) -> datetime.datetime:
8686
except (TypeError, ValueError) as exc:
8787
raise ValueError(f"Invalid timestamp value: {ts}") from exc
8888

89-
return datetime.datetime.fromtimestamp(ts_value, tz=pytz.utc)
89+
return datetime.datetime.fromtimestamp(ts_value, tz=datetime.timezone.utc)
9090

9191

9292
def str_to_datetime(s: str) -> datetime.datetime:

0 commit comments

Comments
 (0)