[DEV-5312] Use milliseconds for timestamp
parent
e2a9d17dc6
commit
9f22db72fd
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -404,7 +404,7 @@ describe( 'system.V1MessageWriter', () =>
|
|||
const expected = {
|
||||
event: {
|
||||
id: 'STEP_SAVE',
|
||||
ts: ts,
|
||||
ts: ts * 1000,
|
||||
actor: 'SERVER',
|
||||
step: null,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue