Skip to content

Commit 32ae095

Browse files
authored
Merge pull request #16 from Bilb/fix-crash-document-timestamp
fix: use valid timestamp format string for documents
2 parents 3f1e7fe + 36658f2 commit 32ae095

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ts/components/conversation/media-gallery/DocumentListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const DocumentListItem = (props: Props) => {
6363
</span>
6464
</div>
6565
<div className="module-document-list-item__date">
66-
{formatDateWithLocale({ date: new Date(timestamp), formatStr: 'ddd, MMM D, Y' })}
66+
{formatDateWithLocale({ date: new Date(timestamp), formatStr: 'd LLL, yyyy' })}
6767
</div>
6868
</div>
6969
</div>

ts/mains/main_node.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,9 +1022,7 @@ ipc.on('get-start-in-tray', event => {
10221022

10231023
ipcMain.on('update-badge-count', (_event, count) => {
10241024
if (app.isReady()) {
1025-
app.setBadgeCount(
1026-
isNumber(count) && isFinite(count) && count >= 0 ? count : 0
1027-
);
1025+
app.setBadgeCount(isNumber(count) && isFinite(count) && count >= 0 ? count : 0);
10281026
}
10291027
});
10301028

0 commit comments

Comments
 (0)