|
27 | 27 | import com.zhazhapan.qiniu.config.QiConfiger; |
28 | 28 | import com.zhazhapan.qiniu.model.FileInfo; |
29 | 29 | import com.zhazhapan.qiniu.modules.constant.Values; |
30 | | -import com.zhazhapan.qiniu.util.Checker; |
31 | | -import com.zhazhapan.qiniu.util.Formatter; |
32 | | -import com.zhazhapan.qiniu.util.Utils; |
| 30 | +import com.zhazhapan.util.Checker; |
| 31 | +import com.zhazhapan.util.Formatter; |
| 32 | +import com.zhazhapan.util.Utils; |
33 | 33 | import com.zhazhapan.qiniu.view.Dialogs; |
34 | 34 |
|
35 | 35 | import javafx.application.Platform; |
@@ -206,7 +206,7 @@ private void initialize() { |
206 | 206 | // 设置默认的开始和结束日期,并调用dateChange事件刷新数据 |
207 | 207 | endDate.setValue(LocalDate.now()); |
208 | 208 | long startTime = System.currentTimeMillis() - Values.DATE_SPAN_OF_THIRTY_ONE; |
209 | | - LocalDate endDate = Utils.dateToLocalDate(new Date(startTime)); |
| 209 | + LocalDate endDate = Formatter.dateToLocalDate(new Date(startTime)); |
210 | 210 | startDate.setValue(endDate); |
211 | 211 | // 设置BucketChoiceComboBox改变事件,改变后并配置新的上传环境 |
212 | 212 | bucketChoiceCombo.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> { |
@@ -259,8 +259,8 @@ public void dragFileDropped(DragEvent event) { |
259 | 259 | * 开始日期或结束日期改变,刷新流量、带宽统计 |
260 | 260 | */ |
261 | 261 | public void dateChange() { |
262 | | - Date start = Utils.localDateToDate(startDate.getValue()); |
263 | | - Date end = Utils.localDateToDate(endDate.getValue()); |
| 262 | + Date start = Formatter.localDateToDate(startDate.getValue()); |
| 263 | + Date end = Formatter.localDateToDate(endDate.getValue()); |
264 | 264 | String fromDate = Formatter.dateToString(start); |
265 | 265 | String toDate = Formatter.dateToString(end); |
266 | 266 | String domain = bucketDomainTextField.getText(); |
|
0 commit comments