change all millisecond references into Dates

This commit is contained in:
2025-04-29 17:05:23 -07:00
parent b58babc7ea
commit 1c7ee9fbc3
9 changed files with 51 additions and 51 deletions

View File

@@ -73,7 +73,7 @@ export class ApiBasedShuttleRepositoryLoader implements ShuttleRepositoryLoader
id: jsonRoute.myid,
polylineCoordinates: [],
systemId: this.systemIdForConstructedData,
updatedTime: Date.now(),
updatedTime: new Date(),
};
await this.repository.addOrUpdateRoute(constructedRoute);
@@ -174,7 +174,7 @@ export class ApiBasedShuttleRepositoryLoader implements ShuttleRepositoryLoader
systemId: this.systemIdForConstructedData,
id: `${jsonBus.busId}`,
orientationInDegrees: parseFloat(jsonBus.calculatedCourse),
updatedTime: Date.now(),
updatedTime: new Date(),
}
await this.repository.addOrUpdateShuttle(constructedShuttle);
@@ -223,7 +223,7 @@ export class ApiBasedShuttleRepositoryLoader implements ShuttleRepositoryLoader
secondsRemaining: jsonEta.secondsSpent,
shuttleId: `${shuttleId}`,
stopId: stopId,
updatedTime: Date.now(),
updatedTime: new Date(),
systemId: this.systemIdForConstructedData,
};
@@ -251,7 +251,7 @@ export class ApiBasedShuttleRepositoryLoader implements ShuttleRepositoryLoader
latitude: parseFloat(stop.latitude),
longitude: parseFloat(stop.longitude),
},
updatedTime: Date.now(),
updatedTime: new Date(),
};
await this.repository.addOrUpdateStop(constructedStop);
@@ -283,7 +283,7 @@ export class ApiBasedShuttleRepositoryLoader implements ShuttleRepositoryLoader
stopId,
position: index + 1,
systemId: this.systemIdForConstructedData,
updatedTime: Date.now(),
updatedTime: new Date(),
};
}
@@ -293,7 +293,7 @@ export class ApiBasedShuttleRepositoryLoader implements ShuttleRepositoryLoader
stopId: jsonOrderedStopData[index - 1][1],
position: index,
systemId: this.systemIdForConstructedData,
updatedTime: Date.now(),
updatedTime: new Date(),
};
}
if (index < jsonOrderedStopData.length - 1) {
@@ -302,7 +302,7 @@ export class ApiBasedShuttleRepositoryLoader implements ShuttleRepositoryLoader
stopId: jsonOrderedStopData[index + 1][1],
position: index + 2,
systemId: this.systemIdForConstructedData,
updatedTime: Date.now(),
updatedTime: new Date(),
};
}