|
|
@@ -69,9 +69,8 @@ impl ExportConnector for BitgetSwapExport {
|
|
|
let last_time = trades_info.last().unwrap()["cTime"].as_str().unwrap().parse::<i64>().unwrap().to_i64().unwrap();
|
|
|
if last_time < start_time {
|
|
|
data_array = data_array.iter().filter(|item| {
|
|
|
- NaiveDateTime::parse_from_str(item.last().unwrap(), "%Y-%m-%d %H:%M:%S%.3f")
|
|
|
- .unwrap()
|
|
|
- .timestamp_millis() > start_time
|
|
|
+ let times = NaiveDateTime::parse_from_str(item.last().unwrap(), "%Y-%m-%d %H:%M:%S%.3f").unwrap().timestamp_millis();
|
|
|
+ times - 8 * 3600 * 1000 > start_time
|
|
|
}).cloned().collect();
|
|
|
break;
|
|
|
}
|