HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpmuhibbah_err/wp-content/plugins/give/src/Framework/WordPressShims/time.php
<?php

declare(strict_types=1);

if (!function_exists('wp_timezone_string')) {
    /**
     * Function is introduced in WP 5.3.
     *
     * @since 2.20.0
     *
     * @see https://developer.wordpress.org/reference/functions/wp_timezone_string
     */
    function wp_timezone_string()
    {
        $timezone_string = get_option('timezone_string');

        if ($timezone_string) {
            return $timezone_string;
        }

        $offset = (float)get_option('gmt_offset');
        $hours = (int)$offset;
        $minutes = ($offset - $hours);

        $sign = ($offset < 0) ? '-' : '+';
        $abs_hour = abs($hours);
        $abs_mins = abs($minutes * 60);
        $tz_offset = sprintf('%s%02d:%02d', $sign, $abs_hour, $abs_mins);

        return $tz_offset;
    }
}

if (!function_exists('wp_timezone')) {
    /**
     * Function is introduced in WP 5.3.
     *
     * @since 2.20.0
     *
     * @see https://developer.wordpress.org/reference/functions/wp_timezone
     */
    function wp_timezone()
    {
        return new DateTimeZone(wp_timezone_string());
    }
}

if (!function_exists('current_datetime')) {
    /**
     * Function is introduced in WP 5.3.
     *
     * @since 2.20.0
     *
     * @see https://developer.wordpress.org/reference/functions/current_datetime
     */
    function current_datetime()
    {
        return date_create_immutable('now', wp_timezone());
    }
}