|
@@ -1,6 +1,7 @@
|
|
|
package com.fs.course.controller;
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
+import java.time.format.DateTimeFormatter;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
@@ -52,7 +53,7 @@ public class FsCourseTrafficLogController extends BaseController
|
|
|
startPage();
|
|
|
if (param.getTime() != null) {
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM");
|
|
|
- String formattedDate = sdf.format(param.getTime());
|
|
|
+ String formattedDate = param.getTime().format(DateTimeFormatter.ofPattern("yyyy-MM"));
|
|
|
String[] parts = formattedDate.split("-");
|
|
|
param.setYear(Integer.parseInt(parts[0]));
|
|
|
param.setMonth(Integer.parseInt(parts[1]));
|