{"action":"opened","issue":{"url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/914","labels_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/914/labels{/name}","comments_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/914/comments","events_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/914/events","html_url":"https://github.com/Eonasdan/bootstrap-datetimepicker/issues/914","id":62065765,"number":914,"title":"Detection of 24h format is invalid in some locales","user":{"login":"olance","id":314079,"avatar_url":"https://avatars.githubusercontent.com/u/314079?v=3","gravatar_id":"","url":"https://api.github.com/users/olance","html_url":"https://github.com/olance","followers_url":"https://api.github.com/users/olance/followers","following_url":"https://api.github.com/users/olance/following{/other_user}","gists_url":"https://api.github.com/users/olance/gists{/gist_id}","starred_url":"https://api.github.com/users/olance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olance/subscriptions","organizations_url":"https://api.github.com/users/olance/orgs","repos_url":"https://api.github.com/users/olance/repos","events_url":"https://api.github.com/users/olance/events{/privacy}","received_events_url":"https://api.github.com/users/olance/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-16T12:33:59Z","updated_at":"2015-03-16T12:33:59Z","closed_at":null,"body":"In France, we write time like this: 21h45, for 9:45 PM.\r\nHence I need the time picker to use 24h format and to display time with the Moment.js format `H[h]mm`.\r\n\r\nThe condition to automatically choose whether to use 24h format prevents me from doing so:\r\n\r\n```js\r\n    use24Hours = (actualFormat.toLowerCase().indexOf('a') < 1 && actualFormat.indexOf('h') < 1); \r\n```\r\n\r\nIndeed, I do have a \"h\" in my format string although it does not mean anything as far as the actual time formatting is concerned!"}}