Fix time duration and visuals

This commit is contained in:
2026-04-24 22:43:45 +02:00
parent ee0bb780c1
commit 192432f8e5
14 changed files with 281 additions and 111 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ describe('toLocalDatetimeInputValue', () => {
describe('formatElapsedTime', () => {
it('formats hours and minutes', () => {
const twoHoursAgo = new Date(Date.now() - 2 * 60 * 60 * 1000).toISOString();
expect(formatElapsedTime(twoHoursAgo)).toBe('2h');
expect(formatElapsedTime(twoHoursAgo)).toBe('2h 0m');
});
it('formats minutes only', () => {