Episerver: Date format
The UI language is controlled by the user settings and will default to use whatever is configured in the web.config in the uiCulture attribute on the globalization element:
https://docs.developers.optimizely.com/content-management-system/docs/globalization
So you may change the globalization config using the solution below:
If that is CMS 11, add this code part to the web.config:
So you may change the globalization config using the solution below:
If that is CMS 11, add this code part to the web.config:
<globalization culture="en-AU" uiCulture="en-AU" requestEncoding="utf-8" responseEncoding="utf-8" resourceProviderFactoryType="EPiServer.Framework.Localization.LocalizationServiceResourceProviderFactory, EPiServer.Framework.AspNet" />
If that is CMS 12, configure it in code at Startup.ConfigureServices method://change the date format globally
services.Configure<GlobalizationSettingsOptions>(o =>
{
o.CultureLanguageCode = "en-AU";
o.UICultureLanguageCode = "en-AU";
});
or in appsettings.json:
{
"EPiServer": {
"Cms": {
"GlobalizationSettings": {
"CultureLanguageCode": "en-AU" // Your langueg code code
}
}
}
}
Comments
Post a Comment