newbie question --- ["never mind"]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kbarrett2008
Forum Newbie
Posts: 9
Joined: Fri Mar 13, 2009 5:09 pm

newbie question --- ["never mind"]

Post 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"
Post Reply