Home > Archive > PHP DB > March 2007 > Re: [PHP-DB] sunrise / sunsite / correcting for summer time
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PHP-DB] sunrise / sunsite / correcting for summer time
|
|
| Niel Archer 2007-03-25, 6:57 pm |
| Hi,=20
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.
=2E
Niel
| |
| Malcolm N 2007-03-27, 6:59 pm |
| On Sun, 25 Mar 2007 23:15:21 +0100, Niel Archer
<spamfree@blueyonder.co.uk> wrote:
>Hi,=20
> 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.
>
Thanks
|
|
|
|
|