{"action":"closed","issue":{"url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/1553","repository_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker","labels_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/1553/labels{/name}","comments_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/1553/comments","events_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/1553/events","html_url":"https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1553","id":146701609,"number":1553,"title":"Time Only Picker with Hours Restrictions Populates Earliest Hour","user":{"login":"jcwtexas","id":17516329,"avatar_url":"https://avatars.githubusercontent.com/u/17516329?v=3","gravatar_id":"","url":"https://api.github.com/users/jcwtexas","html_url":"https://github.com/jcwtexas","followers_url":"https://api.github.com/users/jcwtexas/followers","following_url":"https://api.github.com/users/jcwtexas/following{/other_user}","gists_url":"https://api.github.com/users/jcwtexas/gists{/gist_id}","starred_url":"https://api.github.com/users/jcwtexas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcwtexas/subscriptions","organizations_url":"https://api.github.com/users/jcwtexas/orgs","repos_url":"https://api.github.com/users/jcwtexas/repos","events_url":"https://api.github.com/users/jcwtexas/events{/privacy}","received_events_url":"https://api.github.com/users/jcwtexas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-07T18:05:16Z","updated_at":"2016-04-17T22:32:37Z","closed_at":"2016-04-17T22:32:37Z","body":"Our application requires use of date/time fields with multiple formats. Year only, year/month, year/month/day, year/month/day/time, and time only. This datetimepicker was a great solutions for us but we've encountered one issue that we can't solve.\r\n\r\nWhen using time only and using enabledHours, the input value is the earliest hour. For all other formats including time only without restrictions, the input value is either blank or the value stored in the database.\r\n\r\nThis creates a problem in that the user may inadvertantly change their data on edit, or provide incorrect data on initial submission.\r\n\r\nHave we missed a setting? This jsfiddle demonstrates the initial value difference between a time only field with enabledHours and one without.\r\n\r\nhttps://jsfiddle.net/jcwtexas/1vyodgL6/"}}