activityForm.setActivityEndTime(tf.format(end.getTime()));
} else if (unScheduleActivity != null && !(unScheduleActivity.equals("unSchedule"))) {
// In the case the start time wasn't requested from the parent window,
// set the start time to now() rounded up to the nearest hour, and the
// end time to be the start time plus 1 hour.
UserPrefererences userPref = userObject.getUserPref();
String userTimeZoneId = userPref.getTimeZone();
TimeZone userTimeZone = TimeZone.getTimeZone(userTimeZoneId);
Calendar now = Calendar.getInstance(userTimeZone, locale);
// round up the hour if we are at the 1 minute mark of the hour or
// higher. just clear the second and millisecond fields, its only
// scheduling not physics.