Fix date import logic

This commit is contained in:
mmcwilliams 2024-12-21 00:21:10 -05:00
parent 3424a42f60
commit b376070ca6
3 changed files with 3 additions and 3 deletions

2
dist/generate.js vendored
View File

@ -254,7 +254,7 @@ class Generate {
longitude: latlng === null ? null : latlng.longitude,
discovered: now,
updated: now,
created: +new Date(meta.year, meta.month, meta.day),
created: +new Date(meta.year, meta.month - 1, meta.day),
score: this.score
};
}

File diff suppressed because one or more lines are too long

View File

@ -292,7 +292,7 @@ class Generate {
longitude : latlng === null ? null : latlng.longitude,
discovered : now,
updated : now,
created : + new Date(meta.year, meta.month, meta.day),
created : + new Date(meta.year, meta.month - 1, meta.day),
score : this.score
}
}