Why won't this work?
Code:
$date_sun_info = date_sun_info(time(), 38.4, -9);
$time_YmdHis = date("YmdHis", time());
$sunrise_YmdHis = date("YmdHis", $date_sun_info['sunrise']);
$sunset_YmdHis = date("YmdHis", $date_sun_info['sunset']);

if (($sunset_YmdHis <= $time_YmdHis) && ($time_YmdHis <= $sunrise_YmdHis)) {
            echo "night";
}
If it is the nighttime (after sunset and before sunrise) it should output "night". But it doesn't. There are no errors in the log.