Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Share modal: fix light-on-light Create-link button (use solid button vars) and internal-share timestamp timezone (parse naive UTC as UTC -> viewer local)
Murtaza Nasirbdc1ec805ef2
diff --git a/static/js/modules/composables/sharing.js b/static/js/modules/composables/sharing.jsindex 6b60e989..525742a8 100644--- a/static/js/modules/composables/sharing.js+++ b/static/js/modules/composables/sharing.js@@ -25,7 +25,16 @@ export function useSharing(state, utils) {if (!dateString) return 'Unknown date';try {- const date = new Date(dateString);+ // Backend sends naive UTC (isoformat with no zone). new Date() parses+ // a zoneless datetime as LOCAL, which shows the raw UTC clock value+ // instead of converting it. Append 'Z' when there's no zone so it's+ // parsed as UTC; the toLocale* calls below then render it in the+ // viewer's own timezone.+ let normalized = dateString;+ if (typeof normalized === 'string' && !/(?:Z|[+-]\d{2}:?\d{2})$/.test(normalized)) {+ normalized = normalized.replace(' ', 'T') + 'Z';+ }+ const date = new Date(normalized);const now = new Date();const diffMs = now - date;const diffDays = Math.floor(diffMs / (1000 * 60 * 60 * 24));diff --git a/templates/modals/unified-share-modal.html b/templates/modals/unified-share-modal.htmlindex ebca07f4..9b238b06 100644--- a/templates/modals/unified-share-modal.html+++ b/templates/modals/unified-share-modal.html@@ -34,7 +34,7 @@<!-- Create New Share Button --><button @click="createShare(true)"- class="w-full px-3 py-2 bg-[var(--bg-accent)] text-white rounded-lg hover:opacity-90 transition-opacity text-sm font-medium">+ class="w-full px-3 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors text-sm font-medium"><i class="fas fa-plus-circle mr-1.5"></i>Create New Public Share Link</button>