mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
service: set kline time to UTC
This commit is contained in:
parent
824951c3d5
commit
16322e19fe
|
@ -35,7 +35,7 @@ func (s *BacktestService) SyncKLineByInterval(ctx context.Context, exchange type
|
|||
{
|
||||
Type: types.KLine{},
|
||||
Time: func(obj interface{}) time.Time {
|
||||
return obj.(types.KLine).StartTime.Time()
|
||||
return obj.(types.KLine).StartTime.Time().UTC()
|
||||
},
|
||||
ID: func(obj interface{}) string {
|
||||
kline := obj.(types.KLine)
|
||||
|
|
Loading…
Reference in New Issue
Block a user