Certainly, if you've asked for yyyy then you should get a four digit year. If the patch fixes this then great. Stephen
----- Original Message ----- From: "Henri Yandell" <[EMAIL PROTECTED]> > Sounds find to me. If no one says anything, I'll go ahead and put your > fix in (with a unit test, unless you've a patch for that) over the > weekend. > > Hen > > ----- Original Message ----- > From: Chua, Jerson (Exchange) <[EMAIL PROTECTED]> > Date: Fri, 10 Sep 2004 14:22:44 -0400 > Subject: FastDateFormat year bug > To: [EMAIL PROTECTED] > > > > > Hi to all, > > > > I used FastDateFormat to convert a date object to string using this > pattern yyyy-MM-dd. > > No zeros are padded if I my year is 0001. > > > > I'm getting 1-01-01. > > > > After looking through the code, I replaced line 498 > > > > rule = UnpaddedNumberField.INSTANCE_YEAR; > > > > to > > > > rule = selectNumberRule(Calendar.YEAR, tokenLen); > > > > And it fixed the problem. > > > > Is the current behavior a feature (by design) or a bug? If it's a bug, > can we put my change in? > > > > Thanks. > > > > Jerson > > > > > > > > > *********************************************************************** > Bear Stearns is not responsible for any recommendation, solicitation, > offer or agreement or any information about any transaction, customer > account or account activity contained in this communication. > *********************************************************************** > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
