Skip to content

Commit 065afa5

Browse files
author
Ville Tainio
committed
Switch to unix timestamp
1 parent 2abce00 commit 065afa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vor-backend/app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = function (app, router, configs, sharedConfigs) {
1818
.partition(message => message.type === 'location');
1919

2020
// Add timestamp to every location message.
21-
deviceSource$.subscribe(message => message.date = (new Date()).toJSON());
21+
deviceSource$.subscribe(message => message.timestamp = Date.now());
2222

2323
// listen socket 'init' messages
2424
const socketInitSource$ = socketConnectionSource$

0 commit comments

Comments
 (0)