Merge pull request #16 from Bilb/fix-crash-document-timestamp

fix: use valid timestamp format string for documents
pull/3281/head
Audric Ackermann 5 months ago committed by GitHub
commit 32ae095729
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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