|
|
|
@ -957,8 +957,9 @@ public class TeacherServiceImpl implements TeacherService {
|
|
|
|
|
try {
|
|
|
|
|
Instant instantSTime = Instant.ofEpochMilli(teacherDto.getStartTime());
|
|
|
|
|
Instant instantETime = Instant.ofEpochMilli(teacherDto.getEndTime());
|
|
|
|
|
LocalDate localDateSTime = instantSTime.atZone(TimeZone.getDefault().toZoneId()).toLocalDate();
|
|
|
|
|
LocalDate localDateETime = instantETime.atZone(TimeZone.getDefault().toZoneId()).toLocalDate();
|
|
|
|
|
ZoneId zoneId = ZoneId.of("Asia/Shanghai");
|
|
|
|
|
LocalDate localDateSTime = instantSTime.atZone(zoneId).toLocalDate();
|
|
|
|
|
LocalDate localDateETime = instantETime.atZone(zoneId).toLocalDate();
|
|
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
|
|
String sTime = localDateSTime.format(formatter);
|
|
|
|
|
String eTime = localDateETime.format(formatter);
|
|
|
|
|