PHP date_sunrise with daylight saving

I was using PHP to calculate sunrise and sunset using the built-in functions date_sunrise and date_sunset. But initially, the resulting time was ignoring British Summer Times (BST). The solution was to specify whether daylight saving was in force.

<?php echo ‘Sunrise: ‘ . date_sunrise(time(), SUNFUNCS_RET_STRING, 53.146, -2.367, 90.83333, date(“I”));
<?php echo ‘ Sunset: ‘ . date_sunset(time(), SUNFUNCS_RET_STRING, 53.146, -2.367, 90.83333, date(“I”)); ?>

The PHP function date(“I”) indicates whether Daylight Saving Time (British Summer Time) is active.