Bogus Gregorian Calendar
Bogus Gregorian Calendar
- Subject: Bogus Gregorian Calendar
- From: Greg Hulands <email@hidden>
- Date: Fri, 18 Jun 2004 11:39:09 +1000
Hi,
I am getting the current date by doing:
GregorianCalendar now = new GregorianCalendar();
But the only thing is that it is not using the correct month.
I logged it to the console and got this. The month is 5 not 6.
java.util.GregorianCalendar[time=1087522528940,areFieldsSet=true,areAllF
ieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Australia
/
Brisbane",offset=36000000,dstSavings=0,useDaylight=false,transitions=18,
lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2004
,MONTH=5,WEEK_OF_YEAR=25,WEEK_OF_MONTH=3,DAY_OF_MONTH=18,DAY_OF_YEAR=170
,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=3,AM_PM=0,HOUR=11,HOUR_OF_DAY=11,MIN
UTE=35,SECOND=28,MILLISECOND=940,ZONE_OFFSET=36000000,DST_OFFSET=0]
Yes the date in the computer is set correctly so it can't be the
problem. Is there a bug in GregorianCalendar?
Any info is appreciated.
Greg
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.