Posted by Jeremy on 10/26/07 00:43
bill wrote:
> I found out that I can only set an offset in my session timezone in my
> ISP's MySQL server, not a timezone. So I am left with the task of
> setting the offset, which will vary, depending on whether or not DST is
> in effect.
>
> Is there a way of discovering, from a PHP script is we are in DST or
> standard time ?
>
> bill
if(date("I") == 1)
{
//daylight saving time
}
else
{
//not daylight saving time
}
Whether this is accurate (in light of the recent change in the
definition of DST) is up to your server.
Jeremy
[Back to original message]
|