diff --git a/Dnn.AdminExperience/ClientSide/Dnn.React.Common/.storybook/utils.js b/Dnn.AdminExperience/ClientSide/Dnn.React.Common/.storybook/utils.js index 2f516ef3a16..299f1aa6fee 100644 --- a/Dnn.AdminExperience/ClientSide/Dnn.React.Common/.storybook/utils.js +++ b/Dnn.AdminExperience/ClientSide/Dnn.React.Common/.storybook/utils.js @@ -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;