Skip to content

Commit

Permalink
modify 1e3 to 1000.0 for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
VeryCB committed Feb 27, 2014
1 parent 3c7f604 commit 76b9650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_weixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def parse(self, content):
ret['receiver'] = dct.get('ToUserName')
ret['sender'] = dct.get('FromUserName')
ret['type'] = type = dct.get('MsgType')
ret['time'] = datetime.fromtimestamp(timestamp / 1e3)
ret['time'] = datetime.fromtimestamp(timestamp / 1000.0)

if type == 'text':
ret['content'] = dct.get('Content')
Expand Down

0 comments on commit 76b9650

Please sign in to comment.