service: set kline time to UTC

This commit is contained in:
c9s 2022-06-02 16:53:17 +08:00
parent 824951c3d5
commit 16322e19fe
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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)