Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10750 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37863 invoked by uid 1010); 24 Jun 2004 10:11:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 37839 invoked from network); 24 Jun 2004 10:11:58 -0000 Received: from unknown (HELO sapo.pt) (212.55.154.24) by pb1.pair.com with SMTP; 24 Jun 2004 10:11:58 -0000 Received: (qmail 10262 invoked from network); 24 Jun 2004 10:11:57 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.157) by relay4 with SMTP; 24 Jun 2004 10:11:57 -0000 Received: (qmail 2889 invoked from network); 24 Jun 2004 10:11:05 -0000 Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.155.3]) (envelope-sender ) by mta7 (qmail-ldap-1.03) with SMTP for ; 24 Jun 2004 10:11:05 -0000 Message-ID: <001d01c459d4$4fbc5d20$0100a8c0@pc07653> To: "PHPdev" Date: Thu, 24 Jun 2004 11:16:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: idate problems From: nlopess@php.net ("Nuno Lopes") Hello, I've already reported this to the list some time ago, but nobody answered me until now. I think that the idate function has two little problems: 1) (i)date('L') should return the same (1 if is leap year, 0 otherwise), but they aren't outputing the same echo date('L'); //1 echo idate('L'); //0 2) idate('y') is supposed to return the year with *two*digits, althought it returns just 4. This can be fixed with a simple sprintf? Can somebody look at this, please? Thanks, Nuno