@bytebrand/export-cars 1.21.19 → 1.21.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -299,7 +299,9 @@ export class GoogleTransformer {
|
|
|
299
299
|
|
|
300
300
|
private getYear(car: DataSchemes.Car) {
|
|
301
301
|
const firstModelsProductionDate = +get(car, 'mainData.firstModelsProductionDate', 0);
|
|
302
|
-
|
|
302
|
+
|
|
303
|
+
const date = new Date(firstModelsProductionDate);
|
|
304
|
+
const firstModelsProductionYear = date.getFullYear();
|
|
303
305
|
|
|
304
306
|
return firstModelsProductionYear > TIMESTAMP_FIRST_YEAR ? firstModelsProductionYear : null
|
|
305
307
|
}
|