Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Is it Daylight Savings Time ?
October 25, 2007, 12:37 pm
rate this thread
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 ?
Re: Is it Daylight Savings Time ?
In reply to Your message dated Friday, October 26, 2007, 04:43:12,
J> if(date("I") == 1)
J> //daylight saving time
J> //not daylight saving time
J> Whether this is accurate (in light of the recent change in the
J> definition of DST) is up to your server.
Don't forget to set date.timezone to client timezone before checking that.