{"action":"created","issue":{"url":"https://api.github.com/repos/gportela85/DateTimeField/issues/8","labels_url":"https://api.github.com/repos/gportela85/DateTimeField/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/gportela85/DateTimeField/issues/8/comments","events_url":"https://api.github.com/repos/gportela85/DateTimeField/issues/8/events","html_url":"https://github.com/gportela85/DateTimeField/issues/8","id":84585605,"number":8,"title":"Time not initialized on first show","user":{"login":"sirwesley","id":12732244,"avatar_url":"https://avatars.githubusercontent.com/u/12732244?v=3","gravatar_id":"","url":"https://api.github.com/users/sirwesley","html_url":"https://github.com/sirwesley","followers_url":"https://api.github.com/users/sirwesley/followers","following_url":"https://api.github.com/users/sirwesley/following{/other_user}","gists_url":"https://api.github.com/users/sirwesley/gists{/gist_id}","starred_url":"https://api.github.com/users/sirwesley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirwesley/subscriptions","organizations_url":"https://api.github.com/users/sirwesley/orgs","repos_url":"https://api.github.com/users/sirwesley/repos","events_url":"https://api.github.com/users/sirwesley/events{/privacy}","received_events_url":"https://api.github.com/users/sirwesley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-03T14:11:30Z","updated_at":"2015-06-07T04:18:21Z","closed_at":"2015-06-07T04:18:21Z","body":"When I click on the datetimefield object for the first time and it is shown to the user, the time sliders and time label is set to 00:00, even though the time is something else (ie 09:40).  However, if the panel is hidden and then shown again, the time sliders and label is correct.  \r\n\r\nIn order to get it to work for my needs I modified/added the following code.  I'm sure there is probably a better way, or I'm doing something wrong.  Thoughts?\r\n\r\n```javascript\r\n setValue: function(value) {\r\n        var me = this;\r\n        value.setSeconds(0);\r\n        this.value = new Date(value);\r\n        me.initTimePanel(value);  //Special Fix to Init the Time component.\r\n        return this.update(this.value);\r\n    },\r\ninitTimePanel: function(value) {\r\n        var me = this;\r\n        me.hourSlider.setValue(value.getHours());\r\n        me.minuteSlider.setValue(value.getMinutes());\r\n\r\n        var minutePrefix = value.getMinutes() < 10 ? '0' : '',\r\n            hourPrefix = value.getHours() < 10 ? '0' : '',\r\n            label = me.hourSlider.up().down('toolbar').down('label');\r\n\r\n        label.setText(hourPrefix + value.getHours() + ':' + minutePrefix + value.getMinutes());\r\n    },\r\n```\r\n\r\nAs a separate issue (maybe related).  How should I properly install the the .js files to work with my code.  right now I've put the files in the following folder:  ext/ux/...\r\nI also tried to build the package with with a \"sencha package build\" and get the following errors:\r\n```\r\nC:\\app\\packages\\date-time-picker>sencha package build\r\nSencha Cmd v5.1.3.61\r\n[INF] Processing Build Descriptor : default\r\n[ERR] Failed to resolve dependency Ext.form.field.Date for file Ext.ux.DateTimeF\r\nield\r\n[ERR]\r\n[ERR] BUILD FAILED\r\n[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.form.field.Date\r\n[ERR] Total time: 1 second\r\n[ERR] The following error occurred while executing this line:\r\nC:\\app\\packages\\date-time-picker\\.sencha\\package\\build-impl.xml:140: The following error occurred while executing this line:\r\nC:\\app\\packages\\date-time-picker\\.sencha\\package\\js-impl.xml:32: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.form.field.Date\r\n```\r\nThanks for your help!   Except for my few quirks, this solution works great for my needs.  Hopefully you can provide me some pointers or use my noted issues to make the solution better. \r\n\r\nBest Regards,\r\nWesley\r\nUsing ExtJS 5.1.1"},"comment":{"url":"https://api.github.com/repos/gportela85/DateTimeField/issues/comments/109688714","html_url":"https://github.com/gportela85/DateTimeField/issues/8#issuecomment-109688714","issue_url":"https://api.github.com/repos/gportela85/DateTimeField/issues/8","id":109688714,"user":{"login":"gportela85","id":7908562,"avatar_url":"https://avatars.githubusercontent.com/u/7908562?v=3","gravatar_id":"","url":"https://api.github.com/users/gportela85","html_url":"https://github.com/gportela85","followers_url":"https://api.github.com/users/gportela85/followers","following_url":"https://api.github.com/users/gportela85/following{/other_user}","gists_url":"https://api.github.com/users/gportela85/gists{/gist_id}","starred_url":"https://api.github.com/users/gportela85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gportela85/subscriptions","organizations_url":"https://api.github.com/users/gportela85/orgs","repos_url":"https://api.github.com/users/gportela85/repos","events_url":"https://api.github.com/users/gportela85/events{/privacy}","received_events_url":"https://api.github.com/users/gportela85/received_events","type":"User","site_admin":false},"created_at":"2015-06-07T04:18:21Z","updated_at":"2015-06-07T04:18:21Z","body":"Hi,\r\nIssue has been fixed. Thanks for reporting it."}}