Re: Problems with epoch date before 1970 on PHP 4.3.1
| From: | Richard Lynch | Date: | Wed, 23 Mar 2005 05:58:34 +0000 |
| Subject: | Re: Problems with epoch date before 1970 on PHP 4.3.1 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211355@lists.php.net to get a copy of this message | ||
On Tue, March 22, 2005 2:56 pm, Dan Rossi said:
> Hi there we have discovered a bug when trying to format a date which is
> before 1970 on one of our servers running PHP 4.3.1 , it will convert
> the 1966 year to 1970, is there any possible workaround for this ?
Errrr.
Unix epoch dates start with the integer 0 representing midnight 1/1/1970.
Rumor has it that the authors of this standard are big Disco fans, but
they have only replied with "No comment" :-)
I dunno what you expected to get from 1966 in an epoch date, but it's not
kosher input, so there ya go.
The only work-around for getting pre-1970 dates is not using Unix epoch to
represent your dates.
--
Like Music?
http://l-i-e.com/artists.htm