Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Unify timestamps on browser-local timezone: backend serializes naive UTC ISO (drop local_datetime_filter); frontend parses instants as UTC (parseServerInstant) and renders local, while meeting_date/event wall-clock times stay literal
Murtaza Nasir915d12cda7a9
diff --git a/src/api/inquire.py b/src/api/inquire.pyindex 440ad245..a9a00f36 100644--- a/src/api/inquire.py+++ b/src/api/inquire.py@@ -153,7 +153,7 @@ def inquire_search():result = chunk.to_dict()result['similarity'] = similarityresult['recording_title'] = chunk.recording.title- result['recording_meeting_date'] = local_datetime_filter(chunk.recording.meeting_date)+ result['recording_meeting_date'] = chunk.recording.meeting_date.isoformat() if chunk.recording.meeting_date else Noneresults.append(result)return jsonify({'results': results})diff --git a/src/models/recording.py b/src/models/recording.pyindex ccf267a9..55f7fa60 100644--- a/src/models/recording.py+++ b/src/models/recording.py@@ -213,7 +213,7 @@ class Recording(db.Model):{'id': rid,'title': title,- 'created_at': local_datetime_filter(created),+ 'created_at': created.isoformat() if created else None,}for (rid, title, created) in items],@@ -241,7 +241,7 @@ class Recording(db.Model):{'id': d.id,'title': d.title or f'#{d.id}',- 'created_at': local_datetime_filter(d.created_at),+ 'created_at': d.created_at.isoformat() if d.created_at else None,'is_self': d.id == self.id}for d in dupes@@ -277,15 +277,15 @@ class Recording(db.Model):'title': self.title,'participants': self.participants,'status': self.status,- 'created_at': local_datetime_filter(self.created_at),- 'completed_at': local_datetime_filter(self.completed_at),- 'meeting_date': local_datetime_filter(self.meeting_date),+ 'created_at': self.created_at.isoformat() if self.created_at else None,+ 'completed_at': self.completed_at.isoformat() if self.completed_at else None,+ 'meeting_date': self.meeting_date.isoformat() if self.meeting_date else None,'file_size': self.file_size,'original_filename': self.original_filename,'mime_type': self.mime_type, # cheap column read; lets the sidebar mark video recordings without opening them'is_inbox': self.is_inbox,'is_highlighted': self.is_highlighted,- 'audio_deleted_at': local_datetime_filter(self.audio_deleted_at),+ 'audio_deleted_at': self.audio_deleted_at.isoformat() if self.audio_deleted_at else None,'audio_available': self.audio_deleted_at is None,'deletion_exempt': self.deletion_exempt,'folder_id': self.folder_id,@@ -353,19 +353,19 @@ class Recording(db.Model):'transcription': self.transcription,'summary': self.summary,'status': self.status,- 'created_at': local_datetime_filter(self.created_at),- 'completed_at': local_datetime_filter(self.completed_at),+ 'created_at': self.created_at.isoformat() if self.created_at else None,+ 'completed_at': self.completed_at.isoformat() if self.completed_at else None,'processing_time_seconds': self.processing_time_seconds,'transcription_duration_seconds': self.transcription_duration_seconds,'summarization_duration_seconds': self.summarization_duration_seconds,- 'meeting_date': local_datetime_filter(self.meeting_date),+ 'meeting_date': self.meeting_date.isoformat() if self.meeting_date else None,'file_size': self.file_size,'original_filename': self.original_filename,'user_id': self.user_id,'is_inbox': self.is_inbox,'is_highlighted': self.is_highlighted,'mime_type': self.mime_type,- 'audio_deleted_at': local_datetime_filter(self.audio_deleted_at),+ 'audio_deleted_at': self.audio_deleted_at.isoformat() if self.audio_deleted_at else None,'audio_available': self.audio_deleted_at is None,'audio_duration': self.get_audio_duration(),'deletion_exempt': self.deletion_exempt,diff --git a/src/models/sharing.py b/src/models/sharing.pyindex 6929f3f7..7c2d9a34 100644--- a/src/models/sharing.py+++ b/src/models/sharing.py@@ -36,7 +36,7 @@ class Share(db.Model):'id': self.id,'public_id': self.public_id,'recording_id': self.recording_id,- 'created_at': local_datetime_filter(self.created_at),+ 'created_at': self.created_at.isoformat() if self.created_at else None,'share_summary': self.share_summary,'share_notes': self.share_notes,'recording_title': self.recording.title if self.recording else "N/A",diff --git a/static/js/account-webhooks.js b/static/js/account-webhooks.jsindex 32720410..ead61605 100644--- a/static/js/account-webhooks.js+++ b/static/js/account-webhooks.js@@ -55,9 +55,19 @@return d.innerHTML;}+ // Backend timestamps are naive UTC (no zone). Append 'Z' so they're parsed+ // as UTC and rendered in the viewer's timezone, not mis-read as local.+ function parseServerInstant(s) {+ if (s == null) return new Date(NaN);+ if (typeof s === 'string' && !/(?:Z|[+-]\d{2}:?\d{2})$/.test(s)) {+ s = s.replace(' ', 'T') + 'Z';+ }+ return new Date(s);+ }+function fmt(dt) {if (!dt) return '—';- try { return new Date(dt).toLocaleString(); } catch (_) { return String(dt); }+ try { return parseServerInstant(dt).toLocaleString(); } catch (_) { return String(dt); }}function statusBadge(wh) {diff --git a/static/js/app.modular.js b/static/js/app.modular.jsindex ee1fe4cb..66ba51e8 100644--- a/static/js/app.modular.js+++ b/static/js/app.modular.js@@ -1767,10 +1767,25 @@ document.addEventListener('DOMContentLoaded', async () => {return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];};- const formatDisplayDate = (dateString) => {+ // Parse a backend INSTANT timestamp. The backend stores/serializes+ // naive UTC (no zone designator); new Date() would parse a zoneless+ // string as LOCAL, showing the UTC clock value instead of converting+ // it. Append 'Z' so it's parsed as UTC; toLocale* then renders it in+ // the viewer's own timezone. Do NOT use this for calendar fields+ // (meeting_date) or wall-clock event times — those are not UTC and+ // must keep their literal value (parse with plain new Date()).+ const parseServerInstant = (s) => {+ if (s == null) return new Date(NaN);+ if (typeof s === 'string' && !/(?:Z|[+-]\d{2}:?\d{2})$/.test(s)) {+ s = s.replace(' ', 'T') + 'Z';+ }+ return new Date(s);+ };++ const formatDisplayDate = (dateString, isCalendar = false) => {if (!dateString) return '';try {- let date = new Date(dateString);+ let date = isCalendar ? new Date(dateString) : parseServerInstant(dateString);if (isNaN(date.getTime())) {if (/^\d{4}-\d{2}-\d{2}$/.test(dateString)) {const [year, month, day] = dateString.split('-').map(Number);@@ -1791,10 +1806,10 @@ document.addEventListener('DOMContentLoaded', async () => {}};- const formatShortDate = (dateString) => {+ const formatShortDate = (dateString, isCalendar = false) => {if (!dateString) return '';try {- let date = new Date(dateString);+ let date = isCalendar ? new Date(dateString) : parseServerInstant(dateString);if (isNaN(date.getTime())) {if (/^\d{4}-\d{2}-\d{2}$/.test(dateString)) {const [year, month, day] = dateString.split('-').map(Number);@@ -1880,12 +1895,13 @@ document.addEventListener('DOMContentLoaded', async () => {});};- // Date helper functions+ // Date helper functions. meeting_date is a calendar day (parse local,+ // no tz shift); created_at is a UTC instant (parseServerInstant).const getDateForSorting = (recording) => {- const dateStr = sortBy.value === 'meeting_date'- ? (recording.meeting_date || recording.created_at)- : recording.created_at;- return dateStr ? new Date(dateStr) : null;+ if (sortBy.value === 'meeting_date' && recording.meeting_date) {+ return new Date(recording.meeting_date);+ }+ return recording.created_at ? parseServerInstant(recording.created_at) : null;};const isToday = (date) => {@@ -1946,6 +1962,7 @@ document.addEventListener('DOMContentLoaded', async () => {// Bundle utilities for composablesconst utils = {t, tc, setGlobalError, showToast, formatFileSize, formatDisplayDate, formatShortDate,+ parseServerInstant,formatStatus, getStatusClass, formatTime, formatDuration, formatEventDateTime,getDateForSorting, isToday, isYesterday, isThisWeek, isLastWeek, isThisMonth, isLastMonth, isSameDay,nextTick,@@ -3891,6 +3908,7 @@ document.addEventListener('DOMContentLoaded', async () => {// UtilitiesformatFileSize,+ parseServerInstant,formatDisplayDate,formatShortDate,formatStatus,diff --git a/static/js/i18n.js b/static/js/i18n.jsindex 1af59649..83c7ee91 100644--- a/static/js/i18n.js+++ b/static/js/i18n.js@@ -247,7 +247,18 @@ class I18n {* @returns {string} Formatted relative time*/formatRelativeTime(date) {- const d = date instanceof Date ? date : new Date(date);+ // Backend timestamps are naive UTC; append 'Z' for string inputs so the+ // elapsed-time diff is computed against true UTC, not a local mis-parse.+ let d;+ if (date instanceof Date) {+ d = date;+ } else {+ let s = date;+ if (typeof s === 'string' && !/(?:Z|[+-]\d{2}:?\d{2})$/.test(s)) {+ s = s.replace(' ', 'T') + 'Z';+ }+ d = new Date(s);+ }const now = new Date();const diffSeconds = Math.floor((now - d) / 1000);diff --git a/static/js/modules/composables/tokens.js b/static/js/modules/composables/tokens.jsindex c1d4323c..b4b6001a 100644--- a/static/js/modules/composables/tokens.js+++ b/static/js/modules/composables/tokens.js@@ -5,6 +5,16 @@const { ref, computed } = Vue;+// Parse a backend INSTANT timestamp (naive UTC) — append 'Z' so it's read as+// UTC and rendered in the viewer's timezone instead of being mis-parsed as local.+const parseServerInstant = (s) => {+ if (s == null) return new Date(NaN);+ if (typeof s === 'string' && !/(?:Z|[+-]\d{2}:?\d{2})$/.test(s)) {+ s = s.replace(' ', 'T') + 'Z';+ }+ return new Date(s);+};+export function useTokens({ showToast, setGlobalError }) {// Stateconst tokens = ref([]);@@ -32,13 +42,13 @@ export function useTokens({ showToast, setGlobalError }) {// Helper methodsconst isTokenExpired = (token) => {if (!token.expires_at) return false;- const expiryDate = new Date(token.expires_at);+ const expiryDate = parseServerInstant(token.expires_at);return expiryDate < new Date();};const formatTokenDate = (dateString) => {if (!dateString) return 'Never';- const date = new Date(dateString);+ const date = parseServerInstant(dateString);return date.toLocaleDateString() + ' ' + date.toLocaleTimeString();};diff --git a/static/js/modules/composables/ui.js b/static/js/modules/composables/ui.jsindex f118546a..b0b2ebb8 100644--- a/static/js/modules/composables/ui.js+++ b/static/js/modules/composables/ui.js@@ -296,10 +296,11 @@ export function useUI(state, utils, processedTranscription) {return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];};- // Format display date+ // Format display date. (Shadowed by app.modular.js's version; kept correct+ // for INSTANT timestamps via parseServerInstant in case it's ever wired.)const formatDisplayDate = (dateString) => {if (!dateString) return '';- const date = new Date(dateString);+ const date = utils.parseServerInstant(dateString);return date.toLocaleDateString(undefined, {year: 'numeric',month: 'short',@@ -312,7 +313,7 @@ export function useUI(state, utils, processedTranscription) {// Format short dateconst formatShortDate = (dateString) => {if (!dateString) return '';- const date = new Date(dateString);+ const date = utils.parseServerInstant(dateString);const now = new Date();const diff = now - date;const oneDay = 24 * 60 * 60 * 1000;diff --git a/static/js/modules/composables/upload.js b/static/js/modules/composables/upload.jsindex 17690e46..58d4b43f 100644--- a/static/js/modules/composables/upload.js+++ b/static/js/modules/composables/upload.js@@ -659,7 +659,7 @@ export function useUpload(state, utils) {if (data.duplicate_warning) {const warning = data.duplicate_warning;const existingDate = warning.existing_created_at- ? new Date(warning.existing_created_at).toLocaleDateString()+ ? utils.parseServerInstant(warning.existing_created_at).toLocaleDateString(): '';const existingName = warning.existing_title || 'Unknown';showToast(diff --git a/templates/account.html b/templates/account.htmlindex a3f28300..985b9208 100644--- a/templates/account.html+++ b/templates/account.html@@ -3256,8 +3256,8 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</coconst activeFilter = searchInput ? searchInput.value : '';speakersTabData.forEach(speaker => {- const createdDate = new Date(speaker.created_at).toLocaleDateString();- const lastUsedDate = new Date(speaker.last_used).toLocaleDateString();+ const createdDate = parseInstant(speaker.created_at).toLocaleDateString();+ const lastUsedDate = parseInstant(speaker.last_used).toLocaleDateString();// Voice profile statusconst hasVoiceProfile = speaker.embedding_count && speaker.embedding_count > 0;@@ -3999,7 +3999,7 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</co<div class="flex justify-between items-start"><div><p class="font-semibold">${escapeHtml(share.recording_title)}</p>- <p class="text-sm text-[var(--text-muted)]">${t('sharedTranscripts.sharedOn')}: ${share.created_at}</p>+ <p class="text-sm text-[var(--text-muted)]">${t('sharedTranscripts.sharedOn')}: ${formatInstant(share.created_at)}</p></div><button data-share-id="${share.id}" class="delete-share-btn text-[var(--text-danger)] hover:opacity-80 p-1"><i class="fas fa-trash"></i></button></div>@@ -4117,6 +4117,22 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</coreturn div.innerHTML;}+ // Backend INSTANT timestamps are naive UTC (no zone); append 'Z' so+ // they're read as UTC and rendered/compared in the viewer's local tz.+ function parseInstant(s) {+ if (s == null) return new Date(NaN);+ if (typeof s === 'string' && !/(?:Z|[+-]\d{2}:?\d{2})$/.test(s)) {+ s = s.replace(' ', 'T') + 'Z';+ }+ return new Date(s);+ }+ function formatInstant(dateString) {+ if (!dateString) return '';+ const d = parseInstant(dateString);+ if (isNaN(d.getTime())) return dateString;+ return d.toLocaleString();+ }+// ---- AJAX form submission for the settings forms --------// Intercepts the three settings-tab forms (Account info,// Preferences, Custom Prompts) and submits them via fetch@@ -4407,8 +4423,8 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</coconst div = document.createElement('div');div.className = 'flex items-center justify-between p-3 bg-[var(--bg-tertiary)] rounded-lg border border-[var(--border-primary)] hover:bg-[var(--bg-accent)] transition-colors duration-200';- const createdDate = new Date(speaker.created_at).toLocaleDateString();- const lastUsedDate = new Date(speaker.last_used).toLocaleDateString();+ const createdDate = parseInstant(speaker.created_at).toLocaleDateString();+ const lastUsedDate = parseInstant(speaker.last_used).toLocaleDateString();div.innerHTML = `<div class="flex-1">@@ -6436,8 +6452,8 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</coactiveTokensList.innerHTML = activeTokens.map(token => {const statusClass = getTokenStatusClass(token);const status = getTokenStatus(token);- const createdDate = new Date(token.created_at).toLocaleDateString();- const lastUsed = token.last_used_at ? new Date(token.last_used_at).toLocaleDateString() : null;+ const createdDate = parseInstant(token.created_at).toLocaleDateString();+ const lastUsed = token.last_used_at ? parseInstant(token.last_used_at).toLocaleDateString() : null;return `<div class="bg-[var(--bg-tertiary)] rounded-lg border border-[var(--border-primary)] hover:border-[var(--border-accent)] transition-colors duration-200">@@ -6475,7 +6491,7 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</co${token.expires_at ? `<span class="inline-flex items-center gap-1 px-2 py-0.5 rounded text-[10px] font-medium bg-blue-100 text-blue-800"><i class="fas fa-hourglass-half"></i>- Expires ${new Date(token.expires_at).toLocaleDateString()}+ Expires ${parseInstant(token.expires_at).toLocaleDateString()}</span>` : `<span class="inline-flex items-center gap-1 px-2 py-0.5 rounded text-[10px] font-medium bg-gray-100 text-gray-600">@@ -6496,7 +6512,7 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</cofunction isTokenExpired(token) {if (!token.expires_at) return false;- const expiryDate = new Date(token.expires_at);+ const expiryDate = parseInstant(token.expires_at);return expiryDate < new Date();}diff --git a/templates/admin.html b/templates/admin.htmlindex 7c47a9a0..4353eecf 100644--- a/templates/admin.html+++ b/templates/admin.html@@ -1268,7 +1268,7 @@ Summarization Instructions:</div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-[var(--text-muted)]">- ${ new Date(group.created_at).toLocaleDateString() }+ ${ parseInstant(group.created_at).toLocaleDateString() }</td><td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium space-x-2"><button @click="openManageTeamModal(group)" class="text-[var(--text-accent)] hover:opacity-80" title="Manage Members">@@ -2642,9 +2642,18 @@ Summarization Instructions:}};+ // Backend INSTANT timestamps are naive UTC; append 'Z' so they're+ // read as UTC and rendered in the viewer's local timezone.+ const parseInstant = (s) => {+ if (s == null) return new Date(NaN);+ if (typeof s === 'string' && !/(?:Z|[+-]\d{2}:?\d{2})$/.test(s)) {+ s = s.replace(' ', 'T') + 'Z';+ }+ return new Date(s);+ };const formatDate = (dateString) => {if (!dateString) return t('adminDashboard.never');- const date = new Date(dateString);+ const date = parseInstant(dateString);return date.toLocaleDateString() + ' ' + date.toLocaleTimeString();};@@ -3738,6 +3747,7 @@ Summarization Instructions:saveSettingValue,updateSetting,formatDate,+ parseInstant,getSettingDescription,addUser,editUser,diff --git a/templates/components/detail-view.html b/templates/components/detail-view.htmlindex f4dac762..9d2b3c7c 100644--- a/templates/components/detail-view.html+++ b/templates/components/detail-view.html@@ -103,7 +103,7 @@<!-- Meeting date --><span class="chip-meta chip-meta--clickable" @click="openMeetingDatePicker"><i class="fas fa-calendar"></i>- <span class="chip-meta__label">${selectedRecording.meeting_date ? formatDisplayDate(selectedRecording.meeting_date) : 'No date set'}</span>+ <span class="chip-meta__label">${selectedRecording.meeting_date ? formatDisplayDate(selectedRecording.meeting_date, true) : 'No date set'}</span></span><!-- File metadata facts -->diff --git a/templates/components/detail/mobile-header.html b/templates/components/detail/mobile-header.htmlindex 4842b98d..2c8b1067 100644--- a/templates/components/detail/mobile-header.html+++ b/templates/components/detail/mobile-header.html@@ -129,7 +129,7 @@<div class="flex flex-wrap gap-1.5"><button @click.stop="openMeetingDatePicker" class="chip-meta chip-meta--clickable"><i class="fas fa-calendar"></i>- <span class="chip-meta__label" v-text="selectedRecording.meeting_date ? formatDisplayDate(selectedRecording.meeting_date) : 'No date set'"></span>+ <span class="chip-meta__label" v-text="selectedRecording.meeting_date ? formatDisplayDate(selectedRecording.meeting_date, true) : 'No date set'"></span></button><span v-if="selectedRecording.is_shared" class="chip-meta"><i class="fas fa-user"></i>diff --git a/templates/components/sidebar.html b/templates/components/sidebar.htmlindex 4e3303d9..cc94925f 100644--- a/templates/components/sidebar.html+++ b/templates/components/sidebar.html@@ -451,7 +451,7 @@<!-- Date --><div class="flex items-center flex-shrink-0"><i class="fas fa-calendar-alt mr-1 text-[var(--text-muted)]" style="font-size: 10px;"></i>- ${formatShortDate(sortBy === 'meeting_date' ? recording.meeting_date : recording.created_at)}+ ${formatShortDate(sortBy === 'meeting_date' ? recording.meeting_date : recording.created_at, sortBy === 'meeting_date')}</div><!-- Participants -->diff --git a/templates/group-admin.html b/templates/group-admin.htmlindex 3e230cf6..5d23be89 100644--- a/templates/group-admin.html+++ b/templates/group-admin.html@@ -208,7 +208,7 @@</div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-[var(--text-muted)]">- ${ new Date(group.created_at).toLocaleDateString() }+ ${ parseInstant(group.created_at).toLocaleDateString() }</td><td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium space-x-2"><button @click="openManageTeamModal(group)" class="text-blue-500 hover:text-blue-700" title="Manage Members">@@ -803,6 +803,15 @@createApp({setup() {+ // Backend INSTANT timestamps are naive UTC; append 'Z' so they're+ // read as UTC and rendered in the viewer's local timezone.+ const parseInstant = (s) => {+ if (s == null) return new Date(NaN);+ if (typeof s === 'string' && !/(?:Z|[+-]\d{2}:?\d{2})$/.test(s)) {+ s = s.replace(' ', 'T') + 'Z';+ }+ return new Date(s);+ };// State - groups onlyconst isTeamAdminOnly = ref(true); // This page is only for group adminsconst activeTab = ref('groups'); // Single tab page@@ -1525,6 +1534,7 @@// StateisTeamAdminOnly,activeTab,+ parseInstant,groups,globalRetentionDays,isDarkMode,diff --git a/templates/inquire.html b/templates/inquire.htmlindex e718e739..277fa513 100644--- a/templates/inquire.html+++ b/templates/inquire.html@@ -602,7 +602,7 @@<div class="flex justify-between items-start"><div><p class="font-semibold">${share.recording_title}</p>- <p class="text-sm text-[var(--text-muted)]">${ t('help.sharedOn') }: ${share.created_at}</p>+ <p class="text-sm text-[var(--text-muted)]">${ t('help.sharedOn') }: ${ formatInstant(share.created_at) }</p></div><button @click="deleteShare(share.id)" class="text-[var(--text-danger)] hover:opacity-80 p-1"><i class="fas fa-trash"></i></button></div>@@ -888,7 +888,19 @@const date = new Date(dateString);return date.toLocaleDateString();};-++ // For INSTANT timestamps (e.g. share created_at): backend sends+ // naive UTC, so append 'Z' to read it as UTC and render local.+ const formatInstant = (dateString) => {+ if (!dateString) return '';+ let s = dateString;+ if (typeof s === 'string' && !/(?:Z|[+-]\d{2}:?\d{2})$/.test(s)) {+ s = s.replace(' ', 'T') + 'Z';+ }+ const date = new Date(s);+ return date.toLocaleDateString() + ' ' + date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });+ };+// Smart scrolling functionsconst isNearBottom = () => {if (!inquireMessagesRef.value) return true;@@ -1036,6 +1048,7 @@loadAvailableFilters,setGlobalError,formatDate,+ formatInstant,handleScroll};},diff --git a/templates/modals/add-speaker-modal.html b/templates/modals/add-speaker-modal.htmlindex 4608d6a1..b3a64a42 100644--- a/templates/modals/add-speaker-modal.html+++ b/templates/modals/add-speaker-modal.html@@ -44,7 +44,7 @@<div class="t-body-strong">${ suggestion.name }</div><div class="t-meta">Used ${ suggestion.use_count } time${ suggestion.use_count !== 1 ? 's' : '' }- <span v-if="suggestion.last_used"> • Last: ${ new Date(suggestion.last_used).toLocaleDateString() }</span>+ <span v-if="suggestion.last_used"> • Last: ${ parseServerInstant(suggestion.last_used).toLocaleDateString() }</span></div></div><i class="fas fa-user text-[var(--text-muted)] ml-2"></i>diff --git a/templates/modals/duplicates-modal.html b/templates/modals/duplicates-modal.htmlindex e3955022..82d60742 100644--- a/templates/modals/duplicates-modal.html+++ b/templates/modals/duplicates-modal.html@@ -20,7 +20,7 @@${ copy.title }<span v-if="copy.is_self" class="t-meta ml-1">(current)</span></div>- <div class="t-meta">${ copy.created_at }</div>+ <div class="t-meta">${ formatDisplayDate(copy.created_at) }</div></div><i v-if="!copy.is_self" class="fas fa-chevron-right text-xs text-[var(--text-muted)]"></i></button>diff --git a/templates/modals/edit-modal.html b/templates/modals/edit-modal.htmlindex 4ad14f01..a3390ca0 100644--- a/templates/modals/edit-modal.html+++ b/templates/modals/edit-modal.html@@ -19,7 +19,7 @@<div @click="openDateTimePicker('edit_modal_meeting_date', editingRecording.meeting_date, (isoString) => { editingRecording.meeting_date = isoString; })"class="field cursor-pointer hover:border-[var(--border-focus)] flex items-center justify-between"><span :class="editingRecording.meeting_date ? 'text-[var(--text-primary)]' : 'text-[var(--text-muted)]'">- ${editingRecording.meeting_date ? formatDisplayDate(editingRecording.meeting_date) : 'Select date and time...'}+ ${editingRecording.meeting_date ? formatDisplayDate(editingRecording.meeting_date, true) : 'Select date and time...'}</span><i class="fas fa-calendar-alt text-[var(--text-muted)]"></i></div>diff --git a/templates/modals/recording-recovery-modal.html b/templates/modals/recording-recovery-modal.htmlindex 0f385963..2cecddc0 100644--- a/templates/modals/recording-recovery-modal.html+++ b/templates/modals/recording-recovery-modal.html@@ -41,7 +41,7 @@</div><div class="flex justify-between"><span>${ t('recording.startedAt') }:</span>- <span class="t-body-strong">${ formatDateTime(recoverableRecording.startTime) }</span>+ <span class="t-body-strong">${ formatDisplayDate(recoverableRecording.startTime) }</span></div><div v-if="recoverableRecording.notes" class="pt-2 border-t border-[var(--border-primary)]"><span>${ t('recording.notes') }:</span>@@ -75,7 +75,7 @@</div><div class="flex justify-between"><span>${ t('recording.startedAt') }:</span>- <span class="t-body-strong">${ formatDateTime(recoverableRecording.startTime) }</span>+ <span class="t-body-strong">${ formatDisplayDate(recoverableRecording.startTime) }</span></div><div v-if="recoverableRecording.notes" class="pt-2 border-t border-[var(--border-primary)]"><span>${ t('recording.notes') }:</span>diff --git a/templates/modals/share-delete-modal.html b/templates/modals/share-delete-modal.htmlindex def0669f..c2864389 100644--- a/templates/modals/share-delete-modal.html+++ b/templates/modals/share-delete-modal.html@@ -13,7 +13,7 @@<p class="t-body" style="margin-bottom: var(--sp-3);">Are you sure you want to delete the shared link for:</p><div v-if="shareToDelete" class="banner" style="display: block;"><div class="t-body-strong">${shareToDelete.recording_title}</div>- <div class="t-meta" style="margin-top: var(--sp-1);">Shared on: ${shareToDelete.created_at}</div>+ <div class="t-meta" style="margin-top: var(--sp-1);">Shared on: ${ formatShareDate(shareToDelete.created_at) }</div></div><div class="banner banner--danger" style="margin-top: var(--sp-3); display: flex; align-items: flex-start;"><i class="fas fa-exclamation-triangle" style="margin-top: 2px;"></i>diff --git a/templates/modals/share-modal.html b/templates/modals/share-modal.htmlindex 51dfd82b..615bcc00 100644--- a/templates/modals/share-modal.html+++ b/templates/modals/share-modal.html@@ -33,7 +33,7 @@<h4 class="t-label">Existing Share Links (${recordingPublicShares.length})</h4><div v-for="share in recordingPublicShares" :key="share.id" class="bg-[var(--bg-tertiary)] p-3 rounded-md border border-[var(--border-primary)]"><div class="flex justify-between items-start mb-2">- <p class="t-meta">${ t('help.sharedOn') }: ${share.created_at}</p>+ <p class="t-meta">${ t('help.sharedOn') }: ${ formatShareDate(share.created_at) }</p><button @click="confirmDeletePublicShare(share)" class="btn btn--icon btn--sm" style="color: var(--text-danger);"><i class="fas fa-trash text-xs"></i></button>diff --git a/templates/modals/shares-list-modal.html b/templates/modals/shares-list-modal.htmlindex b51eacb0..b339bbb8 100644--- a/templates/modals/shares-list-modal.html+++ b/templates/modals/shares-list-modal.html@@ -19,7 +19,7 @@<div class="flex justify-between items-start"><div><p class="t-body-strong">${share.recording_title}</p>- <p class="t-meta">${ t('help.sharedOn') }: ${share.created_at}</p>+ <p class="t-meta">${ t('help.sharedOn') }: ${ formatShareDate(share.created_at) }</p></div><button @click="confirmDeleteShare(share)" class="btn btn--icon btn--sm" style="color: var(--text-danger);"><i class="fas fa-trash"></i></button></div>diff --git a/templates/modals/unified-share-modal.html b/templates/modals/unified-share-modal.htmlindex 9b238b06..09a52f23 100644--- a/templates/modals/unified-share-modal.html+++ b/templates/modals/unified-share-modal.html@@ -54,7 +54,7 @@<div class="flex items-center justify-between gap-2 mb-2"><div class="flex items-center gap-2 flex-1 min-w-0"><i class="fas fa-calendar text-[var(--text-muted)] text-xs"></i>- <span class="text-xs text-[var(--text-muted)] truncate">Created: ${share.created_at}</span>+ <span class="text-xs text-[var(--text-muted)] truncate">Created: ${ formatShareDate(share.created_at) }</span><span v-if="share.share_summary" class="inline-flex items-center px-1.5 py-0.5 rounded text-xs bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-400"><i class="fas fa-file-alt mr-1"></i>Summary</span>