Skip to content

Commit

Permalink
add device.lastSyncTime to date field names
Browse files Browse the repository at this point in the history
  • Loading branch information
brad committed Oct 7, 2015
1 parent de7b957 commit 2f5cccf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misfit/misfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def __init__(self, data):
self.set_value(name, value)

def set_value(self, name, value):
if name in ['date', 'datetime', 'startTime', 'Timestamp', 'updatedAt']:
if name in ['date', 'datetime', 'startTime', 'Timestamp', 'updatedAt',
'lastSyncTime']:
setattr(self, name, arrow.get(value))
else:
setattr(self, name, value)
Expand Down

0 comments on commit 2f5cccf

Please sign in to comment.