RE: unix2MDBstamp() and day light savings

From: Date: Thu, 12 May 2005 20:37:08 +0000
Subject: RE: unix2MDBstamp() and day light savings
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19179@lists.php.net to get a copy of this message
That's not the code I was getting at. I have no issue with the format you use. What I am referring to is this: if (date('I', $unix_timestamp)) { $unix_timestamp -= 3600; } Since I celebrate daylight saving time, all my timestamps get an hour knocked off when we are in daylight saving time. > -----Original Message----- > From: Lukas Smith [mailto:lsmith@php.net] > Sent: Thursday, May 12, 2005 1:24 PM > To: Michael Caplan > Cc: 'pear-general@lists.php.net' > Subject: Re: unix2MDBstamp() and day light savings > > Michael Caplan wrote: > > > Out of curiosity, what is reason behind knocking off an hour if the > system > > is celebrating daylight saving time? For my purposes it is messing up a > > critical time based application. > > thats the code .. > date('Y-m-d H:i:s', $unix_timestamp); > > if you have anything better to suggest ... > > regards, > Lukas CONFIDENTIALITY NOTICE This message contains confidential information intended only for the use of the individual or entity named as recipient. Any dissemination, distribution or copying of this communication by anyone other than the intended recipient is strictly prohibited. If you have received this message in error, please immediately notify us and delete your copy. Thank you. AVIS DE CONFIDENTIALITÉ Les informations contenues aux présentes sont de nature privilégiée et confidentielle. Elles ne peuvent être utilisées que par la personne ou l'entité dont le nom paraît comme destinataire. Si le lecteur du présent message n'est pas le destinataire prévu, il est par les présentes prié de noter qu'il est strictement interdit de divulguer, de distribuer ou de copier ce message. Si ce message vous a été transmis par mégarde, veuillez nous en aviser immédiatement et supprimer votre copie. Merci.

« previous php.pear.general (#19179) next »