更新 12313.html
This commit is contained in:
parent
d623730e6d
commit
1a0a0d832d
@ -147,7 +147,7 @@
|
|||||||
newRow.push(insertCity);
|
newRow.push(insertCity);
|
||||||
newRow.push(row[colIndex - 1]);
|
newRow.push(row[colIndex - 1]);
|
||||||
} else if (colIndex === 9 || colIndex === 27) {
|
} else if (colIndex === 9 || colIndex === 27) {
|
||||||
// 处理第9列和第27列(日期时间列),确保导出时保持日期时间格式
|
// 处理第9列和第27列(日期时间列),确保导出时保持日期时间格式
|
||||||
if (typeof row[colIndex - 1] === 'number') {
|
if (typeof row[colIndex - 1] === 'number') {
|
||||||
const date = new Date(Math.round((row[colIndex - 1] - 25569) * 86400000)); // 转换为JavaScript日期
|
const date = new Date(Math.round((row[colIndex - 1] - 25569) * 86400000)); // 转换为JavaScript日期
|
||||||
newRow.push(date.toISOString().split('T')[0] + ' ' + date.toTimeString().split(' ')[0]);
|
newRow.push(date.toISOString().split('T')[0] + ' ' + date.toTimeString().split(' ')[0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user