323324325326327328329330331332333
{ date.setMillis(getMillis(zone, TimeZone.getDefault(), date.getMillis())); } // the date will be in the server's timezone setConvertedInput(date.toDate()); } catch (RuntimeException e) { DateTimeField.this.error(e.getMessage()); invalid();
116117118119120121122123124125126
{ throw new ConversionException(e); } // apply the server time zone to the parsed value dt.setZone(getTimeZone()); return dt.toDate(); } else { try {
330331332333334335336337338339340
320321322323324325326327328329330
326327328329330331332333334335336
122123124125126127128129130131132
304305306307308309310311312313314
{ date.set(DateTimeFieldType.halfdayOfDay(), amOrPm == AM_PM.PM ? 1 : 0); } // the date will be in the server's timezone setConvertedInput(date.toDate()); } catch (RuntimeException e) { DateTimeField.this.error(e.getMessage()); invalid();
442443444445446447448449450451452
modelObject = changeTimeZone(modelObject, zone); } MutableDateTime mDate = new MutableDateTime(modelObject); date = mDate.toDate(); if (use12HourFormat) { int hourOfHalfDay = mDate.get(DateTimeFieldType.hourOfHalfday()); hours = hourOfHalfDay == 0 ? 12 : hourOfHalfDay;
420421422423424425426427428429430