Fix date import logic
This commit is contained in:
parent
3424a42f60
commit
b376070ca6
|
@ -254,7 +254,7 @@ class Generate {
|
||||||
longitude: latlng === null ? null : latlng.longitude,
|
longitude: latlng === null ? null : latlng.longitude,
|
||||||
discovered: now,
|
discovered: now,
|
||||||
updated: 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
|
score: this.score
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -292,7 +292,7 @@ class Generate {
|
||||||
longitude : latlng === null ? null : latlng.longitude,
|
longitude : latlng === null ? null : latlng.longitude,
|
||||||
discovered : now,
|
discovered : now,
|
||||||
updated : 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
|
score : this.score
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue