>
> For dates like this, I force the time component to 12:00 noon. That at
> least reduces the chance of timezone shifts of the day portion.
>
> Chuck
same here:
public static NSTimestamp normalisedDate(NSTimestamp date) {
GregorianCalendar gc = new GregorianCalendar();
gc.setTime(date);
int d = gc.get(GregorianCalendar.DAY_OF_MONTH);
int m = gc.get(GregorianCalendar.MONTH) + 1;
int y = gc.get(GregorianCalendar.YEAR);
NSTimeZone tz = NSTimeZone.systemTimeZone();
return new NSTimestamp(y, m, d, 12, 0, 0, tz);
}
over 250 references to that method in our code base!
Simon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]