mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Added new route for setting last cron and updated front end
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user