修改了日期的存储

This commit is contained in:
moon 2025-10-16 17:03:51 +08:00
parent ce80016c72
commit db030e6413
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ public class SheetHandler extends DefaultHandler {
// 根据类型返回不同格式
if (numeric < 1) {
// 纯时间 自动补上默认日期
return String.format("1970-01-01 %02d:%02d:%02d", hours, minutes, seconds);
return String.format(" %02d:%02d:%02d", hours, minutes, seconds);
} else if (fraction == 0) {
// 纯日期
return String.format("%1$tY-%1$tm-%1$td", base);