Преглед изворни кода

解决报表返回英文日期

Li Yuan пре 1 година
родитељ
комит
e94f3d84e9

+ 1 - 1
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/business/service/impl/StatisticServiceImpl.java

@@ -882,7 +882,7 @@ public class StatisticServiceImpl implements StatisticService {
 
     public String getDayName(String dateString){
         LocalDate date = LocalDate.parse(dateString, DateTimeFormatter.ofPattern("yyyy-MM-dd"));
-        return date.getDayOfWeek().getDisplayName(TextStyle.FULL,Locale.getDefault());
+        return date.getDayOfWeek().getDisplayName(TextStyle.FULL,Locale.CHINA);
     }
 
     public List<String> getYearMonth(){