use UTC when predefining new events date

This commit is contained in:
tibbi 2016-07-18 22:34:11 +02:00
parent cd0d134fb8
commit 70758e7d65
1 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@ public class EventActivity extends SimpleActivity implements DBHelper.DBOperatio
private void setupNewEvent(String dayCode) {
setTitle(getResources().getString(R.string.new_event));
mEventStartDateTime = Formatter.getDateTimeFromCode(dayCode).withZone(DateTimeZone.getDefault()).withHourOfDay(13);
mEventEndDateTime = Formatter.getDateTimeFromCode(dayCode).withZone(DateTimeZone.getDefault()).withHourOfDay(14);
mEventStartDateTime = Formatter.getDateTimeFromCode(dayCode).withZone(DateTimeZone.UTC).withHourOfDay(13);
mEventEndDateTime = Formatter.getDateTimeFromCode(dayCode).withZone(DateTimeZone.UTC).withHourOfDay(14);
}
private void hideKeyboard() {