Page 1 of 1

newbie question --- ["never mind"]

Posted: Fri Mar 13, 2009 5:15 pm
by kbarrett2008
Moved by Moderator to PHP - Code forum

Sorry if this has been asked before.

I'm using the date function as follows :

$date = date('g:i a, F j, Y') ;

however, the time is not reflecting daylight savings time... or whatever it's called that we are in now... basically the hour is one hour behind where it should be.

I see the 'I' format code returns a bool for daylight savings time. Before writing my own function what checks to see if this is true and adds an hour, I thought I would ask if there is some other (better) way I should go about this.

TIA.
Ken

Update:
Looks like I was fooled by the fact that the server I'm using is in California, and I am located in Colorado. :oops:

So.... I guess .. "never mind"