Same freqtrade 2026.4 regression (
2c5dc72): unfiltered_df["date"] may
be int64 during training, causing .strftime() to fail.
Ref: https://github.com/freqtrade/freqtrade/issues/13107
training_filter=True,
)
- start_date = unfiltered_df["date"].iloc[0].strftime("%Y-%m-%d")
- end_date = unfiltered_df["date"].iloc[-1].strftime("%Y-%m-%d")
+ start_date = pd.to_datetime(
+ unfiltered_df["date"].iloc[0], utc=True
+ ).strftime("%Y-%m-%d")
+ end_date = pd.to_datetime(
+ unfiltered_df["date"].iloc[-1], utc=True
+ ).strftime("%Y-%m-%d")
logger.info(
f"-------------------- Training on data from {start_date} to "
f"{end_date} --------------------"