[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] GregorianCalender bug found & fixed
From: |
Sven de Marothy |
Subject: |
[cp-patches] GregorianCalender bug found & fixed |
Date: |
Thu, 13 Jan 2005 21:11:01 +0100 |
Hi, I found this produces an error:
GregorianCalendar calendar = new GregorianCalendar();
calendar.set(Calendar.ERA, GregorianCalendar.AD);
System.out.println("Year:"+calendar.get(Calendar.YEAR));
Year should of course be "2005", we get "1970". The calendar fields
should be calculated by the constructor.
/Sven
GregCal.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] GregorianCalender bug found & fixed,
Sven de Marothy <=