Skip to content

Commit

Permalink
Merge pull request #4519 from david-poindexter/issue-4515
Browse files Browse the repository at this point in the history
Resolved localized date formats
  • Loading branch information
mitchelsellers authored Feb 23, 2021
2 parents 52817c3 + 4bc96ba commit 4776524
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ function formatDate(dateValue, longformat) {

const localizedFormat = require('dayjs/plugin/localizedFormat');
dayjs.extend(localizedFormat);
return dayjs(dateValue).locale(utilities.getCulture()).format(longformat === true ? "LLL" : "L");
require('dayjs/locale/' + utilities.getCulture().substring(0,2));
return dayjs(dateValue).locale(utilities.getCulture().substring(0,2)).format(longformat === true ? "LLL" : "L");
}
function getUserMode(){
return config.userMode;
Expand Down

0 comments on commit 4776524

Please sign in to comment.