修改了日期的存储
This commit is contained in:
parent
ce80016c72
commit
db030e6413
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue