{"action":"created","issue":{"url":"https://api.github.com/repos/djhi/meteor-autoform-materialize/issues/76","repository_url":"https://api.github.com/repos/djhi/meteor-autoform-materialize","labels_url":"https://api.github.com/repos/djhi/meteor-autoform-materialize/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/djhi/meteor-autoform-materialize/issues/76/comments","events_url":"https://api.github.com/repos/djhi/meteor-autoform-materialize/issues/76/events","html_url":"https://github.com/djhi/meteor-autoform-materialize/issues/76","id":112901006,"number":76,"title":"pickatime","user":{"login":"sakulstra","id":4396533,"avatar_url":"https://avatars.githubusercontent.com/u/4396533?v=3","gravatar_id":"","url":"https://api.github.com/users/sakulstra","html_url":"https://github.com/sakulstra","followers_url":"https://api.github.com/users/sakulstra/followers","following_url":"https://api.github.com/users/sakulstra/following{/other_user}","gists_url":"https://api.github.com/users/sakulstra/gists{/gist_id}","starred_url":"https://api.github.com/users/sakulstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakulstra/subscriptions","organizations_url":"https://api.github.com/users/sakulstra/orgs","repos_url":"https://api.github.com/users/sakulstra/repos","events_url":"https://api.github.com/users/sakulstra/events{/privacy}","received_events_url":"https://api.github.com/users/sakulstra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-22T22:03:48Z","updated_at":"2016-05-04T10:02:14Z","closed_at":null,"body":"There's no usable input type for the daytime :/, would be nice to have sth. integrated like 'pickatime'... as type='time' isn't supported by firefox, yet.\r\n\r\nAdditionally there is a bug with input type='time' using autoform-materialize. The label isn't going away when typing sth."},"comment":{"url":"https://api.github.com/repos/djhi/meteor-autoform-materialize/issues/comments/216818151","html_url":"https://github.com/djhi/meteor-autoform-materialize/issues/76#issuecomment-216818151","issue_url":"https://api.github.com/repos/djhi/meteor-autoform-materialize/issues/76","id":216818151,"user":{"login":"mordka","id":3659502,"avatar_url":"https://avatars.githubusercontent.com/u/3659502?v=3","gravatar_id":"","url":"https://api.github.com/users/mordka","html_url":"https://github.com/mordka","followers_url":"https://api.github.com/users/mordka/followers","following_url":"https://api.github.com/users/mordka/following{/other_user}","gists_url":"https://api.github.com/users/mordka/gists{/gist_id}","starred_url":"https://api.github.com/users/mordka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mordka/subscriptions","organizations_url":"https://api.github.com/users/mordka/orgs","repos_url":"https://api.github.com/users/mordka/repos","events_url":"https://api.github.com/users/mordka/events{/privacy}","received_events_url":"https://api.github.com/users/mordka/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T10:02:14Z","updated_at":"2016-05-04T10:02:14Z","body":" encountered the same problem so I worked on a solution of 2 fields. If you have a look at time picker here: http://amsul.ca/pickadate.js/time/ you can notice it's just a select list. So our time can be a select populated by handcrafted array of time strings:\r\n\r\n```\r\n    time: {\r\n        type: String,\r\n        label: 'Hour',\r\n        autoform: {\r\n            options: getTimesArr(),\r\n            firstOption: 'Pick a time!'\r\n        }\r\n    },\r\n//get array of times in 24h format\r\nfunction getTimesArr() {\r\n    var timeArr = [];\r\n    for (var hour = 0; hour < 24; ++hour) {\r\n        ['00', '30'].forEach(function (minutes) {\r\n            var time = hour + ':' + minutes;\r\n            var selectEntry = {label: time, value: time};\r\n            timeArr.push(selectEntry)\r\n        });\r\n    }\r\n    return timeArr\r\n}\r\n```\r\nOn update/insert store date and time in Date() object, we can use autoValue on date property e.g.:\r\n```\r\n   autoValue: function() {\r\n            if (this.isSet) {\r\n                var time = this.field('time').value;\r\n                var hour = time.split(':')[0];\r\n                var minutes = time.split(':')[1];\r\n                var date = new Date(this.value);\r\n                date.setHours(hour);\r\n                date.setMinutes(minutes);\r\n                return date\r\n            }\r\n        },\r\n```\r\n"}}