How can I detect day light savings automatically in PHP?
echo date('I');
The I (capital i) is a 1/0 denoting whether or not daylight saving is currently in effect.
http://php.net/manual/en/function.date.php
hope it helps.
2.1m questions
2.1m answers
60 comments
57.0k users