{"action":"created","issue":{"url":"https://api.github.com/repos/Gillardo/bootstrap-ui-datetime-picker/issues/74","labels_url":"https://api.github.com/repos/Gillardo/bootstrap-ui-datetime-picker/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/Gillardo/bootstrap-ui-datetime-picker/issues/74/comments","events_url":"https://api.github.com/repos/Gillardo/bootstrap-ui-datetime-picker/issues/74/events","html_url":"https://github.com/Gillardo/bootstrap-ui-datetime-picker/issues/74","id":122238170,"number":74,"title":"Can't change value when use arrow key + shift to select & change number","user":{"login":"liu1700","id":6064238,"avatar_url":"https://avatars.githubusercontent.com/u/6064238?v=3","gravatar_id":"","url":"https://api.github.com/users/liu1700","html_url":"https://github.com/liu1700","followers_url":"https://api.github.com/users/liu1700/followers","following_url":"https://api.github.com/users/liu1700/following{/other_user}","gists_url":"https://api.github.com/users/liu1700/gists{/gist_id}","starred_url":"https://api.github.com/users/liu1700/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liu1700/subscriptions","organizations_url":"https://api.github.com/users/liu1700/orgs","repos_url":"https://api.github.com/users/liu1700/repos","events_url":"https://api.github.com/users/liu1700/events{/privacy}","received_events_url":"https://api.github.com/users/liu1700/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-15T10:16:10Z","updated_at":"2015-12-22T21:57:23Z","closed_at":null,"body":"For ex:\r\nCurrent time is: 2015-10-10 11:10;\r\nI use console.log() to print time is 2015-10-10 11:10;\r\n\r\nAnd I use left arrow key with shift to select '0' and change it to '1', it should be 2015-10-10 11:11;\r\nBut console.log() still print 2015-10-10 11:10;\r\n\r\nIt's value doesn't change\r\n\r\nthx~"},"comment":{"url":"https://api.github.com/repos/Gillardo/bootstrap-ui-datetime-picker/issues/comments/166741116","html_url":"https://github.com/Gillardo/bootstrap-ui-datetime-picker/issues/74#issuecomment-166741116","issue_url":"https://api.github.com/repos/Gillardo/bootstrap-ui-datetime-picker/issues/74","id":166741116,"user":{"login":"Gillardo","id":7406381,"avatar_url":"https://avatars.githubusercontent.com/u/7406381?v=3","gravatar_id":"","url":"https://api.github.com/users/Gillardo","html_url":"https://github.com/Gillardo","followers_url":"https://api.github.com/users/Gillardo/followers","following_url":"https://api.github.com/users/Gillardo/following{/other_user}","gists_url":"https://api.github.com/users/Gillardo/gists{/gist_id}","starred_url":"https://api.github.com/users/Gillardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gillardo/subscriptions","organizations_url":"https://api.github.com/users/Gillardo/orgs","repos_url":"https://api.github.com/users/Gillardo/repos","events_url":"https://api.github.com/users/Gillardo/events{/privacy}","received_events_url":"https://api.github.com/users/Gillardo/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T21:57:23Z","updated_at":"2015-12-22T21:57:23Z","body":"Hi sorry about the delay.  I seem to have found the error, but it seems to be apart of the uibDateParser in bootstrap-ui.  Here is a fork of your plunkr.  In it you will see that i have copied the uibDateParser code into the script.js file.\r\n\r\nNear the bottom of the code it says\r\n\r\n```\r\n      if (isValid(fields.year, fields.month, fields.date)) {\r\n        if (angular.isDate(baseDate) && !isNaN(baseDate.getTime())) {\r\n          dt = new Date(baseDate);\r\n\r\n          // this is the cause of the error setFullYear only accepts year, month and day...\r\n          dt.setFullYear(fields.year, fields.month, fields.date,\r\n            fields.hours, fields.minutes, fields.seconds,\r\n            fields.milliseconds || 0);\r\n        } else {\r\n          dt = new Date(fields.year, fields.month, fields.date,\r\n            fields.hours, fields.minutes, fields.seconds,\r\n            fields.milliseconds || 0);\r\n        }\r\n      }\r\n```\r\n\r\nIf you change the above code to this, it works\r\n\r\n```\r\n      if (isValid(fields.year, fields.month, fields.date)) {\r\n          dt = new Date(fields.year, fields.month, fields.date,\r\n            fields.hours, fields.minutes, fields.seconds,\r\n            fields.milliseconds || 0);\r\n      }\r\n```\r\n\r\nI believe this to be a bug in bootstrap-ui, and can post a pull request for you, unless you want to do it? Let me know.\r\n\r\nIf you want to get round the bug for the moment, i would include a custom copy of the uibDateParser service, like i have on the example."}}