I changed to use the routine you suggested.... still off. And if you notice the adding does work fine. It is this code that is returning a bad date:
public static NSTimestampFormatter formatterToDay=new NSTimestampFormatter("%m/%d/%y"); public static String formatTimestampToDay(NSTimestamp date){ return date!=null?formatterToDay.format(date):""; }
And as for how beginDate is created,... it is being created with timezone support: beginDate = new NSTimestamp(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH) + 1, calendar.get(Calendar.DAY_OF_MONTH), 0, 0, 0, NSTimeZone.getDefault());
Any other thoughts?
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|