Skip to content

Commit 12f37b7

Browse files
committed
chore: more generic datetime selection
1 parent 51d61bc commit 12f37b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

freqtrade/rpc/rpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,7 @@ def _convert_dataframe_to_dict(
15461546

15471547
# band-aid until this is fixed:
15481548
# https://github.com/pandas-dev/pandas/issues/45836
1549-
datetime_types = ["datetime", "datetime64", "datetime64[ns, UTC]"]
1549+
datetime_types = ["datetime", "datetime64", "datetimetz"]
15501550
date_columns = dataframe.select_dtypes(include=datetime_types)
15511551
for date_column in date_columns:
15521552
# replace NaT with `None`

0 commit comments

Comments
 (0)