Skip to content

Commit

Permalink
Resolved localized date formats
Browse files Browse the repository at this point in the history
  • Loading branch information
david-poindexter committed Feb 23, 2021
1 parent 3b47a40 commit 4bc96ba
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 4bc96ba

Please sign in to comment.