Re: sunrise / sunsite / correcting for summer time
| From: | Niel Archer | Date: | Sun, 25 Mar 2007 22:15:21 +0000 |
| Subject: | Re: sunrise / sunsite / correcting for summer time | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43331@lists.php.net to get a copy of this message | ||
Hi,
see the docs for the date() function. 'I' returns 0 or 1 indicating
Daylight Saving Time. However, it does this based on the settings for
your installation. i.e. if your webserver is running on a host
configured to U.S. time zone, it'll give U.S. DST results.
Note that, any method will only remain accurate until the goal posts
are moved next. The U.S. for example changed their DST dates last year
(end date moved back). Australia and other countries have also recently
changed. In these cases, either your code or the language need to be
updated after such changes.
.
Niel