Change Unit duration from minutes to seconds in curriculum

Add this code in child theme functions.php file or wplms customizer/wplms_customizer.php file :

add_filter('vibe_unit_duration_parameter','wplms_custom_unit_parameter');
function wplms_custom_unit_parameter($return){
    $return = 1; //set to 1 second.
    return $return;
}
add_filter('wplms_curriculum_time_filter','wplms_custom_unit_curriculum_time_filter',10,2);
function wplms_custom_unit_curriculum_time_filter($html,$min){
     $minutes=0;
     $seconds=0;
    $unit_duration_parameter = apply_filters('vibe_unit_duration_parameter',60);
    if($unit_duration_parameter == 1){ // Checks if unit duration parameter is set in seconds
       if($min > 60){
           $minutes = intval($min/60);
           $seconds = $min - $minutes*60;
          }else{
            $seconds = $min;
          }
      
    $html = '<span><i class="icon-clock"></i> '.((isset($minutes) && $minutes)?$minutes.__(' Minutes','vibe'):'').' '.$seconds.' '.__('seconds','vibe').'</span><b>'.((isset($hours) && $hours)?sprintf('%02d',$hours):"00").':'.sprintf('%02d', $minutes).'</b>';
 
    }
    return $html;
}