{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2901","repository_url":"https://api.github.com/repos/NativeScript/NativeScript","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2901/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2901/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2901/events","html_url":"https://github.com/NativeScript/NativeScript/issues/2901","id":183085928,"number":2901,"title":"Unable to get the time when the TimePicker is in clock mode","user":{"login":"odubuc","id":1559169,"avatar_url":"https://avatars.githubusercontent.com/u/1559169?v=3","gravatar_id":"","url":"https://api.github.com/users/odubuc","html_url":"https://github.com/odubuc","followers_url":"https://api.github.com/users/odubuc/followers","following_url":"https://api.github.com/users/odubuc/following{/other_user}","gists_url":"https://api.github.com/users/odubuc/gists{/gist_id}","starred_url":"https://api.github.com/users/odubuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odubuc/subscriptions","organizations_url":"https://api.github.com/users/odubuc/orgs","repos_url":"https://api.github.com/users/odubuc/repos","events_url":"https://api.github.com/users/odubuc/events{/privacy}","received_events_url":"https://api.github.com/users/odubuc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/T:Question","name":"T:Question","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"NickIliev","id":18008302,"avatar_url":"https://avatars.githubusercontent.com/u/18008302?v=3","gravatar_id":"","url":"https://api.github.com/users/NickIliev","html_url":"https://github.com/NickIliev","followers_url":"https://api.github.com/users/NickIliev/followers","following_url":"https://api.github.com/users/NickIliev/following{/other_user}","gists_url":"https://api.github.com/users/NickIliev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickIliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickIliev/subscriptions","organizations_url":"https://api.github.com/users/NickIliev/orgs","repos_url":"https://api.github.com/users/NickIliev/repos","events_url":"https://api.github.com/users/NickIliev/events{/privacy}","received_events_url":"https://api.github.com/users/NickIliev/received_events","type":"User","site_admin":false},"assignees":[{"login":"NickIliev","id":18008302,"avatar_url":"https://avatars.githubusercontent.com/u/18008302?v=3","gravatar_id":"","url":"https://api.github.com/users/NickIliev","html_url":"https://github.com/NickIliev","followers_url":"https://api.github.com/users/NickIliev/followers","following_url":"https://api.github.com/users/NickIliev/following{/other_user}","gists_url":"https://api.github.com/users/NickIliev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickIliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickIliev/subscriptions","organizations_url":"https://api.github.com/users/NickIliev/orgs","repos_url":"https://api.github.com/users/NickIliev/repos","events_url":"https://api.github.com/users/NickIliev/events{/privacy}","received_events_url":"https://api.github.com/users/NickIliev/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-10-14T15:53:51Z","updated_at":"2016-10-20T15:06:20Z","closed_at":null,"body":"### Did you verify this is a real problem by searching [Stack Overflow]\r\nYes, I opened an issue:\r\nhttp://stackoverflow.com/questions/39706483/nativescript-timepicker-cannot-get-user-modified-value/39725652?noredirect=1#comment66866262_39725652\r\n\r\n### Tell us about the problem\r\nWhen I set the TimePicker in clock mode instead of spinner in /Android/values-v21/style.xml I am unable to retrive the Time from the control. when I change it back to spinner it works.\r\n\r\n### Which platform(s) does your issue occur on?\r\nAndroid\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI:  2.3.0\r\n- Cross-platform modules: 2.3.0\r\n- Runtime(s): 2.3.0\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\nI used a blank project to recreate this.\r\n**/Android/values-v21/style.xml**\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<resources>\r\n\r\n    <!-- Application theme -->\r\n    <style name=\"AppTheme\" parent=\"AppThemeBase\">\r\n        <item name=\"android:datePickerStyle\">@style/SpinnerDatePicker</item>\r\n        <item name=\"android:timePickerStyle\">@style/ClockTimePicker</item>\r\n    </style>\r\n\r\n    <!-- Default style for DatePicker - in spinner mode -->\r\n    <style name=\"SpinnerDatePicker\" parent=\"android:Widget.Material.Light.DatePicker\">\r\n        <item name=\"android:datePickerMode\">spinner</item>\r\n    </style>\r\n\r\n    <!-- Default style for TimePicker - in spinner mode -->\r\n    <style name=\"SpinnerTimePicker\" parent=\"android:Widget.Material.Light.TimePicker\">\r\n        <item name=\"android:timePickerMode\">spinner</item>\r\n    </style>\r\n\r\n    <!-- Default style for TimePicker - in clock mode -->\r\n    <style name=\"ClockTimePicker\" parent=\"android:Widget.Material.Light.TimePicker\">\r\n        <item name=\"android:timePickerMode\">clock</item>\r\n    </style>\r\n\r\n    <style name=\"NativeScriptToolbarStyle\" parent=\"NativeScriptToolbarStyleBase\">\r\n        <item name=\"android:elevation\">4dp</item>\r\n    </style>    \r\n</resources>\r\n```\r\n**app.ts** (my starting file as you can see)\r\n```\r\nimport { platformNativeScriptDynamic, NativeScriptModule } from \"nativescript-angular/platform\";\r\nimport { NativeScriptFormsModule } from \"nativescript-angular/forms\";\r\nimport { NgModule } from \"@angular/core\";\r\nimport { AppComponent } from \"./app.component\";\r\n\r\n@NgModule({\r\n    declarations: [AppComponent],\r\n    bootstrap: [AppComponent],\r\n    imports: [NativeScriptModule, NativeScriptFormsModule],\r\n})\r\nclass AppComponentModule {}\r\n\r\nplatformNativeScriptDynamic().bootstrapModule(AppComponentModule);\r\n```\r\n**app.component.ts**\r\n```\r\nimport { Component } from \"@angular/core\";\r\n\r\n@Component({\r\n    selector: 'my-app',\r\n    templateUrl: 'app.component.html'\r\n})\r\n\r\nexport class AppComponent {\r\n\r\n  public myTime\r\n\r\n  constructor() {\r\n    this.myTime = new Date(2014, 5, 13, 2, 24)\r\n  }\r\n\r\n  public onTap() {\r\n    console.log(this.myTime);\r\n  }\r\n\r\n}\r\n```\r\n**app.component.html**\r\n```\r\n<StackLayout>\r\n    <TimePicker [(ngModel)]='myTime'></TimePicker>\r\n    <Button text=\"TAP\" (tap)=\"onTap()\" ></Button>\r\n</StackLayout>\r\n```\r\n\r\nThis will always give the same time over and over"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/255133443","html_url":"https://github.com/NativeScript/NativeScript/issues/2901#issuecomment-255133443","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2901","id":255133443,"user":{"login":"odubuc","id":1559169,"avatar_url":"https://avatars.githubusercontent.com/u/1559169?v=3","gravatar_id":"","url":"https://api.github.com/users/odubuc","html_url":"https://github.com/odubuc","followers_url":"https://api.github.com/users/odubuc/followers","following_url":"https://api.github.com/users/odubuc/following{/other_user}","gists_url":"https://api.github.com/users/odubuc/gists{/gist_id}","starred_url":"https://api.github.com/users/odubuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odubuc/subscriptions","organizations_url":"https://api.github.com/users/odubuc/orgs","repos_url":"https://api.github.com/users/odubuc/repos","events_url":"https://api.github.com/users/odubuc/events{/privacy}","received_events_url":"https://api.github.com/users/odubuc/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T15:06:20Z","updated_at":"2016-10-20T15:06:20Z","body":"@NickIliev I'm testing  on a Galaxy s4 on Android 5.0.1 which has the clock mode. I did not test your sample in an emulator since I have a physical device with Lollipop."}}
{"actor":{"display_login":"odubuc"}}