{"action":"opened","issue":{"url":"https://api.github.com/repos/alleyinteractive/wordpress-fieldmanager/issues/296","labels_url":"https://api.github.com/repos/alleyinteractive/wordpress-fieldmanager/issues/296/labels{/name}","comments_url":"https://api.github.com/repos/alleyinteractive/wordpress-fieldmanager/issues/296/comments","events_url":"https://api.github.com/repos/alleyinteractive/wordpress-fieldmanager/issues/296/events","html_url":"https://github.com/alleyinteractive/wordpress-fieldmanager/issues/296","id":54791588,"number":296,"title":"datepicker time resets to 12am after publishing if a field is empty","user":{"login":"montchr","id":1757914,"avatar_url":"https://avatars.githubusercontent.com/u/1757914?v=3","gravatar_id":"","url":"https://api.github.com/users/montchr","html_url":"https://github.com/montchr","followers_url":"https://api.github.com/users/montchr/followers","following_url":"https://api.github.com/users/montchr/following{/other_user}","gists_url":"https://api.github.com/users/montchr/gists{/gist_id}","starred_url":"https://api.github.com/users/montchr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montchr/subscriptions","organizations_url":"https://api.github.com/users/montchr/orgs","repos_url":"https://api.github.com/users/montchr/repos","events_url":"https://api.github.com/users/montchr/events{/privacy}","received_events_url":"https://api.github.com/users/montchr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-19T17:33:13Z","updated_at":"2015-01-19T17:33:13Z","closed_at":null,"body":"![](http://cl.ly/image/3715362G0s21/Screen%20Recording%202015-01-19%20at%2012%3A13.gif)\r\n\r\nAnd on a fresh install with no other plugins and vanilla Twenty Fifteen (sorry for the quality):\r\n\r\n![](http://cl.ly/image/3h2Z2q0g3o3j/Screen%20Recording%202015-01-19%20at%2012%3A30.gif)\r\n\r\n[Higher-quality version (MOV)](http://cl.ly/02123v2E3l2q/Screen%20Recording%202015-01-19%20at%2012%3A28.mov).\r\n\r\nHere's the code that generates it:\r\n\r\n```php\r\nadd_action( 'init', function() {\r\n  $fm = new \\Fieldmanager_Group( false, array(\r\n  \t\t\t'name'       => 'event_details',\r\n  \t\t\t'children'   => array(\r\n  \t\t\t\t'start_time'     => new \\Fieldmanager_Datepicker( esc_html__( 'Start Time', 'pedestal' ), array(\r\n  \t\t\t\t\t'name'       => 'start_time',\r\n  \t\t\t\t\t'use_time'   => true,\r\n  \t\t\t\t\t) ),\r\n  \t\t\t\t'end_time'     => new \\Fieldmanager_Datepicker( esc_html__( 'End Time', 'pedestal' ), array(\r\n  \t\t\t\t\t'name'       => 'end_time',\r\n  \t\t\t\t\t'use_time'   => true,\r\n  \t\t\t\t\t) ),\r\n  \t\t\t\t'venue_name'     => new \\Fieldmanager_Textfield( esc_html__( 'Venue Name', 'pedestal' ), array(\r\n  \t\t\t\t\t'name'       => 'venue_name',\r\n  \t\t\t\t\t) ),\r\n  \t\t\t\t'address'     => new \\Fieldmanager_Textfield( esc_html__( 'Address', 'pedestal' ), array(\r\n  \t\t\t\t\t'name'       => 'address',\r\n  \t\t\t\t\t) ),\r\n  \t\t\t\t'cost'        => new \\Fieldmanager_Textfield( esc_html__( 'Cost', 'pedestal' ), array(\r\n  \t\t\t\t\t'name'       => 'cost',\r\n  \t\t\t\t\t) ),\r\n  \t\t\t\t),\r\n  \t\t\t) );\r\n\t$fm->add_meta_box( 'Event Stuff', array( 'post' ) );\r\n} );\r\n```"}}