Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/system/avro/V1MessageWriter.ts')
-rw-r--r--src/system/avro/V1MessageWriter.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/system/avro/V1MessageWriter.ts b/src/system/avro/V1MessageWriter.ts
index 09ee64a..6ff0f2a 100644
--- a/src/system/avro/V1MessageWriter.ts
+++ b/src/system/avro/V1MessageWriter.ts
@@ -101,6 +101,8 @@ export class V1MessageWriter implements MessageWriter
const bucket_formatted = this.setDataTypes( bucket );
const ratedata_formatted = this.setDataTypes( ratedata );
const event_id = this.DELTA_MAP[ delta.type ];
+ const start_date_ms = { "long": meta.startDate * 1000 };
+ const last_update_ms = { "long": meta.lastUpdate * 1000 };
return {
event: {
@@ -111,8 +113,8 @@ export class V1MessageWriter implements MessageWriter
},
document: {
id: meta.id,
- created: meta.startDate,
- modified: meta.lastUpdate,
+ created: start_date_ms,
+ modified: last_update_ms,
},
session: {
Session: {