diff --git a/src/json/relation.ts b/src/json/relation.ts index 4e93a9350c..3b90238481 100644 --- a/src/json/relation.ts +++ b/src/json/relation.ts @@ -49,7 +49,8 @@ export default { 'restrictions', 'source', 'lastModifiedDate', - 'lastOpenedDate' + 'lastOpenedDate', + 'timestamp' ], relation: [ diff --git a/src/json/text.json b/src/json/text.json index e0e8c6f953..3bd9dcf847 100644 --- a/src/json/text.json +++ b/src/json/text.json @@ -725,9 +725,12 @@ "popupSettingsPersonalSidebar": "Automatically show and hide sidebar", "popupSettingsPersonalSidebarMode": "Sidebar mode", "popupSettingsPersonalRelativeDates": "Display relative dates", + "popupSettingsPersonalDateFormat": "Date format", "popupSettingsPersonalSectionLanguage": "Language & Spelling", "popupSettingsPersonalSectionEditor": "Editor Personalisation", "popupSettingsPersonalSectionApp": "App Appearance", + "popupSettingsPersonalSectionDateTime": "Date & Time", + "popupSettingsPersonalTimeFormat": "Time format", "popupSettingsColorMode": "Color mode", "popupSettingsColorModeButtonLight": "Light", @@ -2198,6 +2201,7 @@ "participantPermissions3": "No access", "relationMentions": "Mentioned in", + "relationCreator": "Created by", "spaceStatus0": "Active", "spaceStatus1": "Loading", @@ -2256,7 +2260,6 @@ "formulaCheckboxEmpty": "Count unchecked", "formulaCheckboxNotEmpty": "Count checked", "formulaCheckboxPercentEmpty": "Percentage unchecked", - "formulaCheckboxPercentNotEmpty": "Percentage checked", + "formulaCheckboxPercentNotEmpty": "Percentage checked" - "creator": "Created by" } diff --git a/src/ts/component/block/chat.tsx b/src/ts/component/block/chat.tsx index 5cd2ea96eb..4652c86c0c 100644 --- a/src/ts/component/block/chat.tsx +++ b/src/ts/component/block/chat.tsx @@ -59,7 +59,7 @@ const BlockChat = observer(class BlockChat extends React.Component { let date = U.Date.dayString(item.createdAt); if (!date) { - date = U.Date.dateWithFormat(I.DateFormat.MonthAbbrAfterDay, item.createdAt); + date = U.Date.dateWithFormat(S.Common.dateFormat, item.createdAt); }; return ( diff --git a/src/ts/component/block/dataview/cell/text.tsx b/src/ts/component/block/dataview/cell/text.tsx index 4e1c9037f0..cfa154bbf0 100644 --- a/src/ts/component/block/dataview/cell/text.tsx +++ b/src/ts/component/block/dataview/cell/text.tsx @@ -170,8 +170,8 @@ const CellText = observer(class CellText extends React.Component value = Number(value) || 0; const day = showRelativeDates ? U.Date.dayString(value) : null; - const date = day ? day : U.Date.dateWithFormat(viewRelation.dateFormat, value); - const time = U.Date.timeWithFormat(viewRelation.timeFormat, value); + const date = day ? day : U.Date.dateWithFormat(S.Common.dateFormat, value); + const time = U.Date.timeWithFormat(S.Common.timeFormat, value); value = viewRelation.includeTime ? [ date, time ].join((day ? ', ' : ' ')) : date; } else { diff --git a/src/ts/component/page/main/date.tsx b/src/ts/component/page/main/date.tsx index 136f8b54ce..7ffd278b44 100644 --- a/src/ts/component/page/main/date.tsx +++ b/src/ts/component/page/main/date.tsx @@ -51,7 +51,7 @@ const PageMainDate = observer(class PageMainDate extends React.Component U.Date.dateWithFormat(I.DateFormat.MonthAbbrBeforeDay, v), + mapper: v => U.Date.dateWithFormat(S.Common.dateFormat, v), }, { relationKey: object.relationKey, name: object.name, isCell: true } ]; diff --git a/src/ts/component/page/main/type.tsx b/src/ts/component/page/main/type.tsx index 75ff3b2dc8..c3849dbeb8 100644 --- a/src/ts/component/page/main/type.tsx +++ b/src/ts/component/page/main/type.tsx @@ -92,7 +92,7 @@ const PageMainType = observer(class PageMainType extends React.Component v ? U.Date.dateWithFormat(I.DateFormat.MonthAbbrBeforeDay, v) : '', + mapper: v => v ? U.Date.dateWithFormat(S.Common.dateFormat, v) : '', }, ]; diff --git a/src/ts/component/popup/page/settings/personal.tsx b/src/ts/component/popup/page/settings/personal.tsx index e2e44be17f..38c664a841 100644 --- a/src/ts/component/popup/page/settings/personal.tsx +++ b/src/ts/component/popup/page/settings/personal.tsx @@ -7,7 +7,7 @@ const PopupSettingsPagePersonal = observer(class PopupSettingsPagePersonal exten render () { const { getId } = this.props; - const { config, interfaceLang, navigationMenu, linkStyle, fullscreenObject, hideSidebar, showRelativeDates, showVault } = S.Common; + const { config, interfaceLang, navigationMenu, linkStyle, fullscreenObject, hideSidebar, showRelativeDates, showVault, dateFormat, timeFormat, } = S.Common; const { hideTray, hideMenuBar, languages } = config; const canHideMenu = U.Common.isPlatformWindows() || U.Common.isPlatformLinux(); @@ -105,17 +105,6 @@ const PopupSettingsPagePersonal = observer(class PopupSettingsPagePersonal exten /> -
-