Skip to content

Fix problems with timers longer than 60min. Add hours display for timers longer than 60 minutes#1

Open
MaciejPopenda wants to merge 1 commit intoburkeholland:masterfrom
MaciejPopenda:add-hours-display
Open

Fix problems with timers longer than 60min. Add hours display for timers longer than 60 minutes#1
MaciejPopenda wants to merge 1 commit intoburkeholland:masterfrom
MaciejPopenda:add-hours-display

Conversation

@MaciejPopenda
Copy link

What this PR does

Improves timer display for durations longer than 60 minutes by showing hours.

Problem

Currently, a 90-minute timer displays as "30:00" which is a wrong value.

Solution

  • Timers under 60 minutes: Display as "05:30" (unchanged)
  • Timers 60+ minutes: Display as "1h 30m 15s" (new format)

Testing

  • Tested with 30-minute timer: displays "30:00" ✓
  • Tested with 90-minute timer: displays "1h 30m 00s" ✓
  • Timer countdown works correctly in both formats ✓

Screenshots

For 30min timer:
image

For 345min
image

- Modified getTimeRemaining to calculate hours
- Updated display format to show 'Xh Ym Zs' for timers >= 60 minutes
- Keeps original MM:SS format for timers under 60 minutes
- Fixes issue where long timers displayed confusing minute counts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant