From 32b9db5771529630f6a6ad7b27ef3af2f7c0ccdb Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli <barisusakli@gmail.com> Date: Wed, 19 Jun 2013 21:39:41 -0400 Subject: [PATCH] changes to Date.now() --- src/user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/user.js b/src/user.js index 984a3fb0fc..936e1f63b0 100644 --- a/src/user.js +++ b/src/user.js @@ -291,7 +291,7 @@ var utils = require('./../public/src/utils.js'), 'website':'', 'email' : email, 'signature':'', - 'joindate' : new Date().getTime(), + 'joindate' : Date.now(), 'picture': gravatar, 'gravatarpicture' : gravatar, 'uploadedpicture': '', @@ -472,7 +472,7 @@ var utils = require('./../public/src/utils.js'), var message = username + ' made a new post'; - notifications.create(message, 5, global.config.url + 'topic/' + slug + '#' + pid, 'notification_'+new Date().getTime(), function(nid) { + notifications.create(message, 5, global.config.url + 'topic/' + slug + '#' + pid, 'notification_'+ Date.now(), function(nid) { notifications.push(nid, followers); }); }); @@ -751,7 +751,7 @@ var utils = require('./../public/src/utils.js'), if (total > record) { RDB.set('global:active_user_record', total); - RDB.set('global:active_user_record_date', new Date().getTime()); + RDB.set('global:active_user_record_date', Date.now()); } }); }