Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

ABP Localization for dates not working? #3278


User avatar
0
exlnt created

I have read the ABP documents on localization (<a class="postlink" href="https://www.aspnetboilerplate.com/Pages/Documents/v1.5.2/Localization">https://www.aspnetboilerplate.com/Pages ... calization</a>). I could not find any specific notes related to dates in the docs.

I changed the default language in my Chrome browser to be English UK. I ran my app and the dates are still displayed in USA format (MM/DD/YYYY). The language setting in my ABP solution is set on English UK, yet the dates still do not reflect the UK format (DD/MM/YYYY). Is there something additional that needs to be done to localize the dates?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Current English language has the language code "en". I think you need to add a new language with language code "en-GB" and it will work. Alternatively, you can change the language code of current english language to "en-GB" but you have to do it on your DB.

    Thanks.