更新 12313.html

This commit is contained in:
lc 2025-02-20 00:55:18 +00:00
parent d623730e6d
commit 1a0a0d832d

View File

@ -147,7 +147,7 @@
newRow.push(insertCity);
newRow.push(row[colIndex - 1]);
} else if (colIndex === 9 || colIndex === 27) {
// 处理第9列和第27列(日期时间列),确保导出时保持日期时间格式
// 处理第9列和第27列(日期时间列),确保导出时保持日期时间格式
if (typeof row[colIndex - 1] === 'number') {
const date = new Date(Math.round((row[colIndex - 1] - 25569) * 86400000)); // 转换为JavaScript日期
newRow.push(date.toISOString().split('T')[0] + ' ' + date.toTimeString().split(' ')[0]);