NYCPHP Meetup

NYPHP.org

[nycphp-talk] daylight savings time

Stephen Musgrave stephen at musgrave.org
Mon Apr 19 11:33:29 EDT 2004


All -

I have a calendar application that requires me to set a minute offset in the
config file.  Since my server is in Phoenix and *always* on MST, and the
client is in NYC and either in EST or EDT, the offset is -120 and -180
respectively.

I was wondering if there was a way to find out if the current date/time is
within the range of daylight savings, even if the server doesn't adjust its
time for daylight savings time.  I need to be able to switch the offset
between -120 and -180 automatically.

Thanks,

Stephen




More information about the talk mailing list