@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/export-cars",
3
- "version": "1.21.19",
3
+ "version": "1.21.20",
4
4
  "description": "",
5
5
  "author": "bytebrand",
6
6
  "license": "UNLICENSED",
@@ -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
- const firstModelsProductionYear = toSafeInteger(moment(firstModelsProductionDate * 1000).format('YYYY'));
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
  }