The open-source AI voice studio. Clone, dictate, create.
Update date formatting logic and replace binary assets
Jamie Pine47e4da7ce268
diff --git a/.github/assets/screenshot.webp b/.github/assets/screenshot.webpindex 4fe03fce..b42bcc51 100644Binary files a/.github/assets/screenshot.webp and b/.github/assets/screenshot.webp differdiff --git a/app/src/lib/utils/format.ts b/app/src/lib/utils/format.tsindex 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.pngindex 5072cb5a..5a2ded78 100644Binary files a/landing/public/App.png and b/landing/public/App.png differdiff --git a/landing/public/VoiceBoxAppScreenshot.webp b/landing/public/VoiceBoxAppScreenshot.webpindex 4fe03fce..b42bcc51 100644Binary files a/landing/public/VoiceBoxAppScreenshot.webp and b/landing/public/VoiceBoxAppScreenshot.webp differdiff --git a/tauri/src-tauri/gen/Assets.car b/tauri/src-tauri/gen/Assets.carindex 0efa3de0..8d7760b5 100644Binary files a/tauri/src-tauri/gen/Assets.car and b/tauri/src-tauri/gen/Assets.car differ