Replaced currentTimestamp function with moment format X.

This commit is contained in:
Mario Basic
2015-06-19 18:03:27 +02:00
parent 97a5070129
commit 78ab4c6273
5 changed files with 189 additions and 240 deletions

View File

@@ -8,7 +8,6 @@ var config = require('./../config');
// Helpers
var getDomainFromUrl = require('./../helpers/getDomainFromUrl');
var currentTimestamp = require('./../helpers/currentTimestamp');
var changeExtensionState = require('../helpers/changeExtensionState');
var in_array = require('./../helpers/in_array');
var contains = require('./../helpers/contains');
@@ -161,7 +160,7 @@ class WakaTime {
return JSON.stringify({
entity: entity,
type: type,
time: currentTimestamp(),
time: moment().format('X'),
is_debugging: debug
});
}