Compare commits

..

2 Commits

Author SHA1 Message Date
xlp f8bcdf1361 Merge remote-tracking branch 'origin/main' 10 months ago
xlp 60506f9d9b fix:修改日期格式化 10 months ago

@ -86,7 +86,7 @@ public class SolarenergyService {
//处理时间,如果不为空,则为预测指定日期太阳辐射值,否则为计算当前时间太阳辐射值
Calendar calendar = Calendar.getInstance();
if (!StringUtils.isEmpty(time) && !time.equals("")){
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
try {
calendar.setTime(simpleDateFormat.parse(time));
} catch (Exception e) {

Loading…
Cancel
Save