[READ-ONLY] Mirror of https://github.com/probablykasper/ferrum. Music library app for Mac, Linux and Windows ferrum.kasper.space
electron linux macos music music-library music-player napi windows
0

Configure Feed

Select the types of activity you want to include in your feed.

Respect locale time

Kasper (Sep 12, 2024, 7:43 AM +0200) 310372c1 be869000

+7 -12
+1
CHANGELOG.md
··· 9 9 - Add `Ctrl+Tab` and `Ctrl+Shift+Tab` to select next/previous playlist 10 10 - Make time & volume sliders look ok 11 11 - Small design updates to tracklist header & filter textbox 12 + - Respect user's locale time 12 13 - Fix dragging tracks to up next/autoplay queue boundary 13 14 - Fix button edge not clickable due to zoom 14 15 - Fix rearranging queue items not working when dragging the cover artwork
+1
src/components/TrackList.svelte
··· 498 498 .dateAdded 499 499 width: 130px 500 500 min-width: 140px 501 + font-variant-numeric: tabular-nums 501 502 .year 502 503 width: 0px 503 504 min-width: 47px
+5 -12
src/lib/helpers.ts
··· 16 16 const monthText = (month < 10 ? '0' : '') + month 17 17 const day = date.getDate() 18 18 const dayText = (day < 10 ? '0' : '') + day 19 - let hours = date.getHours() 20 - const mins = date.getMinutes() 21 - const minsText = (mins < 10 ? '0' : '') + mins 22 - let ampm = 'AM' 23 - if (hours > 11) { 24 - hours -= 12 25 - ampm = 'PM' 26 - } 27 - if (hours === 0) hours = 12 28 - return ( 29 - date.getFullYear() + '/' + monthText + '/' + dayText + ' ' + hours + ':' + minsText + ' ' + ampm 30 - ) 19 + const clock = date.toLocaleTimeString(undefined, { 20 + hour: '2-digit', 21 + minute: '2-digit', 22 + }) 23 + return date.getFullYear() + '/' + monthText + '/' + dayText + ' ' + clock 31 24 } 32 25 33 26 type ShortcutOptions = {