use local time instead of UTC

This commit is contained in:
c9s 2022-06-24 15:42:30 +08:00
parent 1587630b7b
commit 54d0a83eee
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 3 additions and 3 deletions

View File

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

View File

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