Menu

#6 Date-Value in BDAY

open
nobody
None
5
2004-06-19
2004-06-19
Mikel
No

When there is a date value in BDAY, not a date-time
value (both are allowed by rfc2426), the VDate
constructor cannot parse ist.

In VDate.setDate() we have:

indexDash = value.indexOf("T");
int day = Integer.parseInt(value.substring(0,
indexDash));
calendar.set(year, month - 1, day);

Here "value.substring(0, indexDash)" has to be replaced
by "(indexDash < 0 ? value : value.substring(0,
indexDash))"

Discussion


Log in to post a comment.

MongoDB Logo MongoDB