|
|
@@ -21,8 +21,8 @@ async fn main() {
|
|
|
}
|
|
|
|
|
|
let symbol = config.symbol;
|
|
|
- let start_at = NaiveDateTime::parse_from_str(&config.range_time[0].clone(), "%Y-%m-%d %H:%M:%S").unwrap().timestamp().to_string();
|
|
|
- let end_at = NaiveDateTime::parse_from_str(&config.range_time[1].clone(), "%Y-%m-%d %H:%M:%S").unwrap().timestamp().to_string();
|
|
|
+ let start_at = (NaiveDateTime::parse_from_str(&config.range_time[0].clone(), "%Y-%m-%d %H:%M:%S").unwrap().timestamp() - 8 * 3600).to_string();
|
|
|
+ let end_at = (NaiveDateTime::parse_from_str(&config.range_time[1].clone(), "%Y-%m-%d %H:%M:%S").unwrap().timestamp() - 8 * 3600).to_string();
|
|
|
let export_path = if config.export_path == "" { None } else { Option::from(config.export_path.as_str()) };
|
|
|
let export_name = if config.export_name == "" { None } else { Option::from(config.export_name.as_str()) };
|
|
|
|