From d0e192e20f54322c868c9ffaa4778286429d479b Mon Sep 17 00:00:00 2001 From: Antoine Merino Date: Sat, 6 Nov 2021 13:14:15 +0100 Subject: [PATCH] Fix naive timezone for /daily command --- freqtrade/rpc/rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/rpc/rpc.py b/freqtrade/rpc/rpc.py index 58de3d1e8..37ff80be5 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -251,7 +251,7 @@ class RPC: def _rpc_daily_profit( self, timescale: int, stake_currency: str, fiat_display_currency: str) -> Dict[str, Any]: - today = datetime.utcnow().date() + today = datetime.now(timezone.utc).date() profit_days: Dict[date, Dict] = {} if not (isinstance(timescale, int) and timescale > 0):