Web: Client: fix getting dates in portal language format instead of user language in info panel
This commit is contained in:
parent
21f8f74f47
commit
69165ea30f
@ -15,6 +15,7 @@ import {
|
|||||||
getFileTypeName,
|
getFileTypeName,
|
||||||
} from "@docspace/client/src/helpers/filesUtils";
|
} from "@docspace/client/src/helpers/filesUtils";
|
||||||
import CommentEditor from "../sub-components/CommentEditor";
|
import CommentEditor from "../sub-components/CommentEditor";
|
||||||
|
import { getCookie } from "@docspace/common/utils";
|
||||||
|
|
||||||
// Property Content Components
|
// Property Content Components
|
||||||
|
|
||||||
@ -58,7 +59,7 @@ export const decodeString = (str) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const parseAndFormatDate = (date, personal, culture) => {
|
export const parseAndFormatDate = (date, personal, culture) => {
|
||||||
const locale = personal ? localStorage.getItem(LANGUAGE) : culture;
|
const locale = getCookie(LANGUAGE) || culture;
|
||||||
const correctDate = getCorrectDate(locale, date);
|
const correctDate = getCorrectDate(locale, date);
|
||||||
return correctDate;
|
return correctDate;
|
||||||
};
|
};
|
||||||
@ -119,7 +120,8 @@ class DetailsHelper {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getNeededProperties = () => {
|
getNeededProperties = () => {
|
||||||
return (this.item.isRoom
|
return (
|
||||||
|
this.item.isRoom
|
||||||
? [
|
? [
|
||||||
"Owner",
|
"Owner",
|
||||||
this.item.providerKey && "Storage Type",
|
this.item.providerKey && "Storage Type",
|
||||||
|
Loading…
Reference in New Issue
Block a user