Skip to content

Commit

Permalink
timestamp resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
jlmadurga committed Apr 18, 2016
1 parent 10acaa3 commit 45149ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion microbot/serializers/kik_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class TimestampField(serializers.Field):

def to_internal_value(self, data):
return datetime.fromtimestamp(data)
return datetime.fromtimestamp(data/1000.)

def to_representation(self, value):
return int(time.mktime(value.timetuple()))
Expand Down

0 comments on commit 45149ca

Please sign in to comment.