Web: Client: set user's locale in getting document dates

This commit is contained in:
Aleksandr Lushkin 2023-08-30 17:43:45 +02:00
parent a938eb6f3e
commit 1bbce8326d

View File

@ -38,7 +38,7 @@ export default function withContent(WrappedContent) {
const { culture, item, personal } = this.props;
const { created, updated } = item;
const locale = personal ? getCookie(LANGUAGE) : culture;
const locale = getCookie(LANGUAGE) || culture;
const date = create ? created : updated;