mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-19 20:34:44 +00:00
Use user's format
This commit is contained in:
parent
6f370395ea
commit
fefaed368a
1 changed files with 4 additions and 1 deletions
|
|
@ -394,8 +394,11 @@ angular.module('habitrpg')
|
|||
options.nextDue = true;
|
||||
var nextDueDates = Shared.shouldDo(new Date, task, options);
|
||||
|
||||
let dateFormat = 'MM-DD-YYYY';
|
||||
if (user.preferences.dateFormat) dateFormat = user.preferences.dateFormat.toUpperCase();
|
||||
console.log(dateFormat);
|
||||
var nextDue = nextDueDates.map(function (date) {
|
||||
return date.format('MM-DD-YYYY');
|
||||
return date.format(dateFormat);
|
||||
});
|
||||
|
||||
return nextDue.join(', ');
|
||||
|
|
|
|||
Loading…
Reference in a new issue