Re: Bug #3808: probably y2k problem

From: Date: Sun, 12 Mar 2000 10:10:54 +0000
Subject: Re: Bug #3808: probably y2k problem
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-16689@lists.php.net to get a copy of this message
At 14:01 11-3-2000 +0000, roman@management.cz wrote:
From:             roman@management.cz
Operating system: SuSE Linux 6.1 / Windows 2000 RC2
PHP version:      3.0.15
PHP Bug Type:     Misbehaving function
Bug description: probably y2k problem $datum = date("d.m.Y H:i:s",time);
time should be time() , as it is a function. using it like you do, without the () returns 0, which is the date you're getting. $datum = date("d.m.Y H:i:s",time()); <-- works fine
echo $datum; this will print 01.01.1970 01:00:00 and my date on the system is March 11, 2000 I tried this on 3 diferent computers with diferent operating systems. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.dev (#16689) next »