Merge branch 'TheHollidayInn-api-v3-user-set-last-cron-fix' into api-v3

This commit is contained in:
Blade Barringer
2016-05-20 08:03:47 -05:00
6 changed files with 93 additions and 14 deletions

View File

@@ -77,10 +77,7 @@ habitrpg.controller('SettingsCtrl',
};
$scope.saveDayStart = function() {
User.set({
'preferences.dayStart': Math.floor($scope.dayStart),
'lastCron': +new Date
});
User.setCustomDayStart(Math.floor($scope.dayStart));
};
$scope.language = window.env.language;