Skip to content

Commit 2009ff1

Browse files
Use date() instead of getTime()
1 parent 46ae4a1 commit 2009ff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var handleCounter = function(table, value, remote) {
7171

7272
var countDefinition = {
7373
type: 'counter',
74-
timestamp: new Date().getTime(),
74+
timestamp: new Date(),
7575
value: value
7676
};
7777

@@ -85,7 +85,7 @@ var handleTick = function(table, value, remote) {
8585

8686
var countDefinition = {
8787
type: 'tick',
88-
timestamp: new Date().getTime(),
88+
timestamp: new Date(),
8989
value: value
9090
};
9191

0 commit comments

Comments
 (0)