use mills from status if available
This commit is contained in:
parent
c5cd0e38ab
commit
d8798e0bcf
1 changed files with 3 additions and 1 deletions
|
@ -336,7 +336,9 @@ public class NSDeviceStatus {
|
|||
try {
|
||||
|
||||
long clock = 0L;
|
||||
if (object.has("created_at"))
|
||||
if (object.has("mills"))
|
||||
clock = object.getLong("mills");
|
||||
else if (object.has("created_at"))
|
||||
clock = DateUtil.fromISODateString(object.getString("created_at")).getTime();
|
||||
String device = getDevice();
|
||||
Integer battery = null;
|
||||
|
|
Loading…
Reference in a new issue