1
0

Fix parser from phone
All checks were successful
Remote Deploy / deploy (push) Successful in 6s

This commit is contained in:
2026-02-09 07:52:08 +00:00
parent 1d743c5553
commit f5166e5231

View File

@@ -210,7 +210,7 @@ export default async function parseV1V2(downloadedFilePath) {
if (dateMatch) { if (dateMatch) {
const day = Number.parseInt(dateMatch[1], 10); const day = Number.parseInt(dateMatch[1], 10);
const month = Number.parseInt(dateMatch[2], 10); const month = Number.parseInt(dateMatch[2], 10);
const year = Number.parseInt(dateMatch[3], 10); const year = dateMatch[3].length === 2 ? Number('20' + dateMatch[3]) : Number(dateMatch[3]);
date = new Date(year, month - 1, day); date = new Date(year, month - 1, day);
} }