Skip to content

Commit

Permalink
Convert candlestick chart to local time
Browse files Browse the repository at this point in the history
  • Loading branch information
Restioson committed Jul 27, 2023
1 parent c770ac8 commit 320cae6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CandlestickService {
}

Candle _parse(Map<String, dynamic> 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();
Expand Down

0 comments on commit 320cae6

Please sign in to comment.