1
0
Fork 0

[DEV-5312] Use milliseconds for timestamp

master
Austin Schaffer 2019-12-19 13:08:17 -05:00 committed by Schaffer, Austin
parent e2a9d17dc6
commit 9f22db72fd
2 changed files with 3 additions and 2 deletions

View File

@ -103,11 +103,12 @@ export class V1MessageWriter implements MessageWriter
const event_id = this.DELTA_MAP[ delta.type ];
const start_date_ms = { "long": meta.startDate * 1000 };
const last_update_ms = { "long": meta.lastUpdate * 1000 };
const ts_ms = ts * 1000;
return {
event: {
id: event_id,
ts: ts,
ts: ts_ms,
actor: 'SERVER',
step: null,
},

View File

@ -404,7 +404,7 @@ describe( 'system.V1MessageWriter', () =>
const expected = {
event: {
id: 'STEP_SAVE',
ts: ts,
ts: ts * 1000,
actor: 'SERVER',
step: null,
},