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/www/conradinvestmentgroup.com/pm/app/Views/events/event_time.php
<?php

$today = get_today_date();
$tomorrow = get_tomorrow_date();

if ($model_info->start_date == $model_info->end_date) {
    if ($model_info->start_date === $today) {
        echo app_lang("today");
    } else if ($model_info->start_date === $tomorrow) {
        echo app_lang("tomorrow");
    } else {
        $day_name = app_lang("short_" . strtolower(date("l", strtotime($model_info->start_date)))); //get short day name from language
        $month_name = app_lang(strtolower(date("F", strtotime($model_info->start_date)))); //get month name from language
        echo $day_name . ", " . $month_name . " " . date("d", strtotime($model_info->start_date));
    }

    if (is_date_exists($model_info->start_time) && $model_info->start_time != "00:00:00" || (is_date_exists($model_info->end_time) && $model_info->end_time != "00:00:00")) {
        if (is_date_exists($model_info->start_time)) {
            echo ", " . format_to_time($model_info->start_date . " " . $model_info->start_time, false);

            if (!isset($is_reminder)) {
                echo " – " . format_to_time($model_info->end_date . " " . $model_info->end_time, false);
            }
        }
    }
} else {

    $day_name = app_lang("short_" . strtolower(date("l", strtotime($model_info->start_date)))); //get short day name from language
    $month_name = app_lang(strtolower(date("F", strtotime($model_info->start_date)))); //get month name from language
    echo $day_name . ", " . $month_name . " " . date("d", strtotime($model_info->start_date));

    if (is_date_exists($model_info->start_time) && $model_info->start_time != "00:00:00" || (is_date_exists($model_info->end_time) && $model_info->end_time != "00:00:00")) {
        if (is_date_exists($model_info->start_time)) {
            echo ", " . format_to_time($model_info->start_date . " " . $model_info->start_time, false);
        }
    }


    if($model_info->end_date){
        $end_day_name = app_lang("short_" . strtolower(date("l", strtotime($model_info->end_date)))); //get short day name from language
        $end_month_name = app_lang(strtolower(date("F", strtotime($model_info->end_date)))); //get month name from language
    
        echo " – " . $end_day_name . ", " . $end_month_name . " " . date("d", strtotime($model_info->end_date));
    }


    if (is_date_exists($model_info->start_time) && $model_info->start_time != "00:00:00" || (is_date_exists($model_info->end_time) && $model_info->end_time != "00:00:00")) {
        if ($model_info->end_date && is_date_exists($model_info->end_time)) {
            echo ", " . format_to_time($model_info->end_date . " " . $model_info->end_time, false);
        }
    }
}
?>