Merge lp:~themeles/ubuntu-clock-app/bugfix-1442518 into lp:ubuntu-clock-app
| Status: | Merged |
|---|---|
| Approved by: | Nekhelesh Ramananthan on 2015-06-16 |
| Approved revision: | 280 |
| Merged at revision: | 279 |
| Proposed branch: | lp:~themeles/ubuntu-clock-app/bugfix-1442518 |
| Merge into: | lp:ubuntu-clock-app |
| Diff against target: |
54 lines (+12/-10) 3 files modified
app/alarm/AlarmDelegate.qml (+7/-8) debian/changelog (+4/-1) po/com.ubuntu.clock.pot (+1/-1) |
| To merge this branch: | bzr merge lp:~themeles/ubuntu-clock-app/bugfix-1442518 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve on 2015-06-14 | |
| Nekhelesh Ramananthan | 2015-06-14 | Approve on 2015-06-14 | |
|
Review via email:
|
|||
Commit Message
Fixes alarms after midnight being incorrectly enabled for the next day.
Description of the Change
This MP should fix alarms after midnight being incorrectly enabled for the next day. This fix was possible due to the help of nik90. Thnx!
Steps to test
1. Open clock app and create an alarm for 10:00 AM and disable it.
2. Close clock app
3. Set time manually to sometime after midnight like 01:10 AM using the system settings app and date to tomorrow or the date after.
4. Open clock app
5. Try enabling the alarms which were disabled in the first step.
The alarms should be schedule for that day 10:00 AM instead of the next day since it is past midnight.
| Nekhelesh Ramananthan (nik90) wrote : | # |
lgtm! Let's test this for a few days before top-approving and merging.
PASSED: Continuous integration, rev:276
http://
Executed test runs:
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
| Nekhelesh Ramananthan (nik90) wrote : | # |
After 2 days of testing, this patch works as expected. Top approving now.


Couple minor typos (I'm being nitpicky now)
- The debian changelog entry should include the bug number..so please append (LP: #1442518) to the end of that sentence.
- var now=new Date() should be var now = new Date() to maintain consistency
- Please leave gaps between the arguments in alarmData.date = new Date(now. getFullYear( ),now.getMonth( ),now.getDate( )+1,alarmData. date.getHours( ),alarmData. date.getMinutes (),0,0)
it should look like
alarmData.date = new Date(now. getFullYear( ), now.getMonth(), now.getDate()+1, alarmData. date.getHours( ), alarmData. date.getMinutes (), 0, 0)
This will improve clarity