Use ISO format in log message

pull/749/head
lilia 9 years ago
parent 935941e31e
commit 267f1f5d93

@ -25,7 +25,7 @@
var expiring = new Whisper.MessageCollection(); var expiring = new Whisper.MessageCollection();
expiring.once('add', function(next) { expiring.once('add', function(next) {
var expires_at = next.get('expires_at'); var expires_at = next.get('expires_at');
console.log('next message expires', new Date(expires_at)); console.log('next message expires', new Date(expires_at).toISOString());
var wait = expires_at - Date.now(); var wait = expires_at - Date.now();
if (wait < 0) { wait = 0; } if (wait < 0) { wait = 0; }

Loading…
Cancel
Save