tags:

views:

37

answers:

1

how to detect day light saving automaticaly in php ?

+2  A: 
echo date('I', time());

the I (capital i) is a 1/0 denoting if your currently within daylight saving hours.

http://php.net/manual/en/function.date.php

hope it helps.

Glycerine
+1 Go for it....
OM The Eternity