From caac77c90b54bdd65021c64f6cf9aba89f620ef8 Mon Sep 17 00:00:00 2001 From: Robert Caulk Date: Tue, 5 Dec 2023 12:16:08 +0100 Subject: [PATCH] Update data_drawer.py --- freqtrade/freqai/data_drawer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/freqai/data_drawer.py b/freqtrade/freqai/data_drawer.py index afd70c300..e3027267b 100644 --- a/freqtrade/freqai/data_drawer.py +++ b/freqtrade/freqai/data_drawer.py @@ -285,8 +285,8 @@ class FreqaiDataDrawer: hist_preds = self.historic_predictions[pair].copy() # ensure both dataframes have the same date format so they can be merged - new_pred["date_pred"] = pd.to_datetime(new_pred["date_pred"], utc=True) - hist_preds["date_pred"] = pd.to_datetime(hist_preds["date_pred"], utc=True) + new_pred["date_pred"] = pd.to_datetime(new_pred["date_pred"]) + hist_preds["date_pred"] = pd.to_datetime(hist_preds["date_pred"]) # find the closest common date between new_pred and historic predictions # and cut off the new_pred dataframe at that date