Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 39756 invoked from network); 16 May 2008 08:27:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2008 08:27:06 -0000 Received: (qmail 70870 invoked by uid 500); 16 May 2008 08:27:02 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 70804 invoked by uid 500); 16 May 2008 08:27:02 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 70792 invoked by uid 99); 16 May 2008 08:27:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 01:27:01 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [137.120.1.251] (HELO um0251.unimaas.nl) (137.120.1.251) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 08:26:06 +0000 Received: from um-mail0139.unimaas.nl (um-mail0139.unimaas.nl [137.120.1.139]) by um0251.unimaas.nl (Postfix) with ESMTP id 2300A1D60224 for ; Fri, 16 May 2008 10:26:27 +0200 (CEST) Received: from um-mail0136.unimaas.nl ([137.120.1.136]) by um-mail0139.unimaas.nl with Microsoft SMTPSVC(6.0.3790.1830); Fri, 16 May 2008 10:24:41 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8B72E.49CB1010" Subject: RE: date formatting issue Date: Fri, 16 May 2008 10:24:41 +0200 Message-ID: <329A68716B57D54E8D39FD3F8A4A84DF0E7DEDDE@um-mail0136.unimaas.nl> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: date formatting issue Thread-Index: Aci3EladmdBmMJZfR7u2WqShV5P7ywAHA7CQ From: "Linden H van der (MI)" To: X-OriginalArrivalTime: 16 May 2008 08:24:41.0855 (UTC) FILETIME=[4A0920F0:01C8B72E] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C8B72E.49CB1010 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 that's because your lenient setting is set to true, which recalculates = the date exactly the way you describe. Set lenient to false and you = should get an error. =20 Bye, Helma -----Original Message----- From: R=E9gis Millet [mailto:milletregis@gmail.com]=20 Sent: Thursday, May 15, 2008 17:29 To: users@cocoon.apache.org Subject: date formatting issue =09 =09 Hello! =20 I have a cocoon field, formated like that : fd:datatype=20 base=3D"date">=20 =09 =20 =09 =20 =09 dd/MM/yyyy=20 =09 =20 =09 =20 =09 =20 My problem is that, when i input a non-valid date, it is accepted. =20 for example, if I input "32/12/2001", it is accepted as "01/01/2002". = does anyone know a way to correct this? Thanks a lot. ------_=_NextPart_001_01C8B72E.49CB1010 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
Hi,
 
that's=20 because your lenient setting is set to true, which recalculates the date = exactly=20 the way you describe. Set lenient to false and you should get an=20 error.
 
Bye,=20 Helma
-----Original Message-----
From: = R=E9gis Millet=20 [mailto:milletregis@gmail.com]
Sent: Thursday, May 15, 2008 = 17:29
To: users@cocoon.apache.org
Subject: date = formatting=20 issue

Hello!
 
I have a cocoon field, formated like that :

fd:datatype

base=3D"date">=20

<fd:convertor type=3D"formatting"=20 lenient=3D"true">=20

<fd:patterns>=20

<fd:pattern>dd/MM/yyyy</fd:pattern>=20

</fd:patterns>=20

</fd:convertor>=20

</fd:datatype>
 
My problem is that, when i input a non-valid date, it is = accepted.
 
for example, = if I input=20 "32/12/2001", it is accepted as "01/01/2002".  does anyone know a = way to=20 correct this?
Thanks a=20 lot.
------_=_NextPart_001_01C8B72E.49CB1010--