diff --git a/.github/assets/screenshot.webp b/.github/assets/screenshot.webp index 4fe03fce..b42bcc51 100644 Binary files a/.github/assets/screenshot.webp and b/.github/assets/screenshot.webp differ diff --git a/app/src/lib/utils/format.ts b/app/src/lib/utils/format.ts index 51d69eb2..fbd7a884 100644 --- a/app/src/lib/utils/format.ts +++ b/app/src/lib/utils/format.ts @@ -7,7 +7,22 @@ export function formatDuration(seconds: number): string { } export function formatDate(date: string | Date): string { - return formatDistance(new Date(date), new Date(), { addSuffix: true }); + // Parse the date string - if it doesn't have timezone info, treat it as UTC + let dateObj: Date; + if (typeof date === 'string') { + // If the string doesn't end with Z or have timezone offset, assume it's UTC + const dateStr = date.trim(); + if (!dateStr.includes('Z') && !dateStr.match(/[+-]\d{2}:\d{2}$/)) { + // No timezone info, treat as UTC + dateObj = new Date(dateStr + 'Z'); + } else { + dateObj = new Date(dateStr); + } + } else { + dateObj = date; + } + + return formatDistance(dateObj, new Date(), { addSuffix: true }).replace(/^about /i, ''); } export function formatFileSize(bytes: number): string { diff --git a/landing/public/App.png b/landing/public/App.png index 5072cb5a..5a2ded78 100644 Binary files a/landing/public/App.png and b/landing/public/App.png differ diff --git a/landing/public/VoiceBoxAppScreenshot.webp b/landing/public/VoiceBoxAppScreenshot.webp index 4fe03fce..b42bcc51 100644 Binary files a/landing/public/VoiceBoxAppScreenshot.webp and b/landing/public/VoiceBoxAppScreenshot.webp differ diff --git a/tauri/src-tauri/gen/Assets.car b/tauri/src-tauri/gen/Assets.car index 0efa3de0..8d7760b5 100644 Binary files a/tauri/src-tauri/gen/Assets.car and b/tauri/src-tauri/gen/Assets.car differ