How can the date() function in PHP be correctly applied to avoid getting the start of the UNIX Epoch?

When using the date() function in PHP, if no timestamp is provided, it defaults to the start of the UNIX Epoch (January 1, 1970). To avoid this, you can pass a current timestamp as an argument to the date() function to get the current date and time.

$current_date = date("Y-m-d H:i:s", time());
echo $current_date;