diff --git a/library/package.json b/library/package.json index 0cbc8bb..3ce5151 100644 --- a/library/package.json +++ b/library/package.json @@ -1,6 +1,6 @@ { "name": "@irontec/ivoz-ui", - "version": "1.3.6", + "version": "1.3.7", "description": "UI library used in ivozprovider", "license": "GPL-3.0", "main": "index.js", diff --git a/library/src/entities/DefaultEntityBehavior/ListDecorator.tsx b/library/src/entities/DefaultEntityBehavior/ListDecorator.tsx index 787dd90..623995d 100644 --- a/library/src/entities/DefaultEntityBehavior/ListDecorator.tsx +++ b/library/src/entities/DefaultEntityBehavior/ListDecorator.tsx @@ -59,7 +59,17 @@ const ListDecorator: ListDecoratorType = (props) => { } if (isPropertyScalar(property) && property.format === 'date-time') { - return value ? new Date(value).toLocaleString() : ''; + const localStringOptions: Intl.DateTimeFormatOptions = { + year: 'numeric', + month: '2-digit', + day: '2-digit', + hour: '2-digit', + minute: '2-digit', + second: '2-digit', + }; + return value + ? new Date(value).toLocaleString(navigator.language, localStringOptions) + : ''; } if (!value && property.null) {