← Back to team overview

ubuntu-touch-coreapps-reviewers team mailing list archive

[Merge] lp:~pkunal-parmar/ubuntu-calendar-app/bug_1413462 into lp:ubuntu-calendar-app

 

Kunal Parmar has proposed merging lp:~pkunal-parmar/ubuntu-calendar-app/bug_1413462 into lp:ubuntu-calendar-app.

Commit message:
Resolves Bug #1413462

Resetting seconds to 0 before setting the date

Requested reviews:
  Ubuntu Calendar Developers (ubuntu-calendar-dev)

For more details, see:
https://code.launchpad.net/~pkunal-parmar/ubuntu-calendar-app/bug_1413462/+merge/251922

Resolves Bug #1413462

Resetting seconds to 0 before setting the date
-- 
Your team Ubuntu Calendar Developers is requested to review the proposed merge of lp:~pkunal-parmar/ubuntu-calendar-app/bug_1413462 into lp:ubuntu-calendar-app.
=== modified file 'NewEvent.qml'
--- NewEvent.qml	2014-11-27 17:46:47 +0000
+++ NewEvent.qml	2015-03-05 12:51:46 +0000
@@ -247,6 +247,7 @@
     // Calucate default hour and minute for start and end time on event
     function roundDate(date) {
         var tempDate = new Date(date)
+        tempDate.setHours(date.getHours(), date.getMinutes(), 0, 0);
         if(tempDate.getMinutes() < 30)
             return tempDate.setMinutes(30)
         tempDate.setMinutes(0)


Follow ups