Time field value resetting to zero

Support Meta Box AIO Time field value resetting to zero

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #49634
    Key_WebdesignKey_Webdesign
    Participant

    I'm having some issues with a Meta Box field with the "time" type.
    The field value is saving properly, and is showing correctly in the admin column.
    But when I edit the custom post, the time is set to 00:00:00. So when I save again, this value is saved, thus resetting the time value.
    What can be the problem here?

    This is the meta field code:

    array(
    						'name'  => __( 'Playing time', 'KEY' ),
    						'id'    => $prefix . 'rel_duration',
    						'type'  => 'time',
                'timestamp' => false,
    						'js_options' => array(
    							'stepMinute'        => 1,
    							'timeFormat'      => 'HH:mm:ss',
    							'controlType'			=> 'select',
    							'showButtonPanel' => false,
    							'timeInput'				=> true,
    							'timeOnlyTitle' => __('Playing time', 'KEY'),
    						),
    						'admin_columns' => true,
    				),
    #49639
    PeterPeter
    Moderator

    Hello,

    I use your code in my demo site and see that the time field doesn't display the format with second value (ss). Please remove this setting to make it displays the saved value.

    'timeFormat' => 'HH:mm:ss',

    #49641
    Key_WebdesignKey_Webdesign
    Participant

    Alright, but I do need the second value, since this is the playing time of a music album.
    How should I format this with Meta Box fields to make it work, then?

    #49649
    PeterPeter
    Moderator

    Hello,

    I've escalated the issue to the development team to fix it as soon as possible. I will let you know when I have more information form the team.

    Thank you.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.