fix: use valid timestamp format string for documents

pull/3281/head
Audric Ackermann 5 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> </span>
</div> </div>
<div className="module-document-list-item__date"> <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> </div>
</div> </div>

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

Loading…
Cancel
Save