From 320cae642e2f7c2046a088aad9afea8e3e696156 Mon Sep 17 00:00:00 2001 From: Restioson Date: Thu, 27 Jul 2023 10:27:49 +0200 Subject: [PATCH] Convert candlestick chart to local time --- mobile/lib/features/trade/application/candlestick_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/lib/features/trade/application/candlestick_service.dart b/mobile/lib/features/trade/application/candlestick_service.dart index 0de2bdce8..7fe0075ce 100644 --- a/mobile/lib/features/trade/application/candlestick_service.dart +++ b/mobile/lib/features/trade/application/candlestick_service.dart @@ -14,7 +14,7 @@ class CandlestickService { } Candle _parse(Map json) { - var date = DateTime.parse(json['timestamp']); + var date = DateTime.parse(json['timestamp']).toLocal(); var high = json['high'].toDouble(); var low = json['low'].toDouble(); var open = json['open'].toDouble();