mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
use local time instead of UTC
This commit is contained in:
parent
1587630b7b
commit
54d0a83eee
|
@ -147,7 +147,7 @@ func (s *TradeService) QueryTradingVolume(startTime time.Time, options TradingVo
|
|||
return records, err
|
||||
}
|
||||
|
||||
record.Time = time.Date(record.Year, time.Month(record.Month), record.Day, 0, 0, 0, 0, time.UTC)
|
||||
record.Time = time.Date(record.Year, time.Month(record.Month), record.Day, 0, 0, 0, 0, time.Local)
|
||||
records = append(records, record)
|
||||
}
|
||||
|
||||
|
|
|
@ -242,8 +242,8 @@ func (o Order) CsvRecords() [][]string {
|
|||
string(o.Status),
|
||||
o.Price.String(),
|
||||
o.Quantity.String(),
|
||||
o.CreationTime.Time().UTC().Format(time.RFC1123),
|
||||
o.UpdateTime.Time().UTC().Format(time.RFC1123),
|
||||
o.CreationTime.Time().Format(time.RFC1123),
|
||||
o.UpdateTime.Time().Format(time.RFC1123),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user