HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/public_html/pm/app/Views/custom_fields/input_time.php
<?php
$uid = "_" . uniqid(rand());

$time_value = "";
if (isset($field_info->value)) {
    $time_value = is_date_exists($field_info->value) ? $field_info->value : "";

    if (get_setting("time_format") == "24_hours") {
        $time_value = $time_value ? date("H:i", strtotime($time_value)) : "";
    } else {
        $time_value = $time_value ? convert_time_to_12hours_format(date("H:i:s", strtotime($time_value))) : "";
    }
}

echo form_input(array(
    "id" => "custom_field_" . $field_info->id . $uid,
    "name" => "custom_field_" . $field_info->id,
    "value" => $time_value,
    "class" => "form-control",
    "placeholder" => $field_info->placeholder,
    "data-rule-required" => $field_info->required ? true : "false",
    "data-msg-required" => app_lang("field_required")
));
?>

<script type="text/javascript">
    $(document).ready(function () {
        setTimePicker("#<?php echo "custom_field_" . $field_info->id . $uid; ?>");
    });
</script>