mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Merge branch 'TheHollidayInn-api-v3-user-set-last-cron-fix' into api-v3
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user