From fa060bf6cd8a2a43aacaae07e617323ab2963392 Mon Sep 17 00:00:00 2001 From: Alys Date: Sat, 31 Oct 2015 19:26:05 +0900 Subject: [PATCH] revert a commit that went live prematurely when I was distracted - sorry for commit spam --- common/script/public/userServices.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/common/script/public/userServices.js b/common/script/public/userServices.js index 0f9dcbd3ae..b26a4c531d 100644 --- a/common/script/public/userServices.js +++ b/common/script/public/userServices.js @@ -182,13 +182,7 @@ angular.module('habitrpg') // If they don't have timezone, set it var offset = moment().zone(); // eg, 240 - this will be converted on server as -(offset/60) if (user.preferences.timezoneOffset !== offset) - // User's timezone has changed, which can trigger a second - // cron in one day - bad! Prevent it by setting lastCron to - // now (plus a little bit of time in case login is slow). - // FIXME: This can also prevent a cron that should run (but - // that's less serious than damage from an extra cron). - var soon = moment().add(1, 'day'); - userServices.set({'lastCron': soon, 'preferences.timezoneOffset': offset}); + userServices.set({'preferences.timezoneOffset': offset}); cb && cb(); }); } else {