int toSecond, boolean toNone) {
User user = Common.getUser();
DateTimeZone dtz = user.getDateTimeZoneInstance();
DateTime from = createDateTime(fromYear, fromMonth, fromDay, fromHour, fromMinute, fromSecond, fromNone, dtz);
DateTime to = createDateTime(toYear, toMonth, toDay, toHour, toMinute, toSecond, toNone, dtz);
DataExportDefinition def = new DataExportDefinition(pointIds, from, to);
user.setDataExportDefinition(def);
}