Added new route for setting last cron and updated front end

This commit is contained in:
Keith Holliday
2016-05-18 23:24:32 +01:00
parent 0a14d29ebb
commit e8b53d6b22
4 changed files with 41 additions and 5 deletions

View File

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