Rc/1.3.0 b1 #584

Merged
estevez-dev merged 2 commits from rc/1.3.0-b1 into master 2020-08-25 12:39:00 +03:00
2 changed files with 6 additions and 4 deletions

View File

@ -20,6 +20,7 @@ import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
public class SendDataHomeWorker extends Worker {
@ -195,9 +196,10 @@ public class SendDataHomeWorker extends Worker {
triggerTimestamp = alarmClockInfo.getTriggerTime();
final Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(triggerTimestamp);
sensorData.put("state", DATE_TIME_FORMAT.format(calendar.getTime()));
sensorAttrs.put("date", DATE_FORMAT.format(calendar.getTime()));
sensorAttrs.put("time", TIME_FORMAT.format(calendar.getTime()));
Date date = calendar.getTime();
sensorData.put("state", DATE_TIME_FORMAT.format(date));
sensorAttrs.put("date", DATE_FORMAT.format(date));
sensorAttrs.put("time", TIME_FORMAT.format(date));
sensorAttrs.put("timestamp", triggerTimestamp);
} else {
sensorData.put("state", "");

View File

@ -29,7 +29,7 @@ dependencies:
firebase_crashlytics: ^0.1.3+3
syncfusion_flutter_core: ^18.2.44
syncfusion_flutter_gauges: ^18.2.44
flutter_map: ^0.10.1
flutter_map: ^0.10.1+1
dev_dependencies: