@DwrPermission(user = true)
public void getChartData(int[] pointIds, int fromYear, int fromMonth, int fromDay, int fromHour, int fromMinute,
int fromSecond, boolean fromNone, int toYear, int toMonth, int toDay, int toHour, int toMinute,
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);
}