Skip to content

Commit

Permalink
Change timestamp type from Date to real timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
matey97 committed May 11, 2022
1 parent dc1d636 commit 758df7e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class HeartRateRecordMessagingService extends AbstractRecordMessagingServ

records.push({
deviceId: messageEvent.getSourceNodeId(),
timestamp: new Date(time),
timestamp: time,
value,
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class LocationRecordMessagingService extends AbstractRecordMessagingServi

records.push({
deviceId: messageEvent.getSourceNodeId(),
timestamp: new Date(time),
timestamp: time,
latitude: lat,
longitude: lon,
altitude: alt,
Expand Down
2 changes: 1 addition & 1 deletion src/internal/sensors/sensor-record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { SensorType } from "./sensor-type";

export interface SensorRecord {
deviceId: string;
timestamp: Date;
timestamp: number;
}

export interface SensorRecords<T extends SensorRecord> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class TriAxialRecordMessagingService extends AbstractRecordMessagingServi
time = buff.getLong();
records.push({
deviceId: messageEvent.getSourceNodeId(),
timestamp: new Date(time),
timestamp: time,
x,
y,
z,
Expand Down

0 comments on commit 758df7e

Please sign in to comment.