fix: use valid timestamp format string for documents

pull/3281/head
Audric Ackermann 4 months ago
parent 3f1e7fe268
commit 36658f23d2
No known key found for this signature in database

@ -63,7 +63,7 @@ export const DocumentListItem = (props: Props) => {
</span>
</div>
<div className="module-document-list-item__date">
{formatDateWithLocale({ date: new Date(timestamp), formatStr: 'ddd, MMM D, Y' })}
{formatDateWithLocale({ date: new Date(timestamp), formatStr: 'd LLL, yyyy' })}
</div>
</div>
</div>

@ -1022,9 +1022,7 @@ ipc.on('get-start-in-tray', event => {
ipcMain.on('update-badge-count', (_event, count) => {
if (app.isReady()) {
app.setBadgeCount(
isNumber(count) && isFinite(count) && count >= 0 ? count : 0
);
app.setBadgeCount(isNumber(count) && isFinite(count) && count >= 0 ? count : 0);
}
});

Loading…
Cancel
Save