Default alarm time is wrongly set if the current time minutes is a multiple by 5

Bug #1484926 reported by Bartosz Kosiorek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Clock App
Fix Released
Low
Bartosz Kosiorek

Bug Description

According to Clock Design the default alarm time shown in the edit alarm page should be taken from the current time and be rounded off to the next multiple of 5.

So for instance, if the current time is 13:26, then the edit alarm page should show 13:30 and so on.

Unfortunately when current time's minute is divisible by 5, like 13:30 for instance, then the alarm is set to 24 hours later.

Steps to reproduce.
1. Wait current time's minute is divisible by 5 (eg. 13:25)
2. Press + button to create alarm
3. Notice that time is "13:25"
4. After alarm creation, the alarm is set for 24 hours

Implementation proposal
1. Wait current time's minute is divisible by 5 (eg. 13:25)
2. Press + button to create alarm
3. Notice that time is "13:30"
4. After alarm creation, the alarm is set for 5 minutes later

Related branches

Changed in ubuntu-clock-app:
milestone: none → 3.5
summary: - Default alarm time is wrongly set, if the current time minutes is
- multiply by 5
+ Default alarm time is wrongly set if the current time minutes is a
+ multiple by 5
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-clock-app at revision 334, scheduled for release in ubuntu-clock-app, milestone 3.5

Changed in ubuntu-clock-app:
status: In Progress → Fix Committed
description: updated
Changed in ubuntu-clock-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.