Changed route to user set custom day start

This commit is contained in:
Keith Holliday
2016-05-19 21:14:35 +01:00
parent e8b53d6b22
commit 5b7a56d28d
4 changed files with 30 additions and 12 deletions

View File

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