use local timestamp when creating events
This commit is contained in:
parent
9571238043
commit
03949ff67b
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ def new_message(msg, meta):
|
|||
|
||||
if 'content' in msg:
|
||||
text = msg.content.text + "\n"
|
||||
ts = int(msg.created_at.strftime('%s')) * 1000
|
||||
ts = int(time.time()) * 1000
|
||||
|
||||
lnktext = ""
|
||||
for link in msg.content.entities.links:
|
||||
|
@ -125,7 +125,7 @@ def new_media(room_id, msg):
|
|||
matrix_api = MatrixHttpApi(config['MATRIX_HOST'],
|
||||
token=config['MATRIX_AS_TOKEN'],
|
||||
identity=matrix_id)
|
||||
ts = int(msg.created_at.strftime('%s')) * 1000
|
||||
ts = int(time.time()) * 1000
|
||||
|
||||
if 'io.pnut.core.oembed' in msg.raw:
|
||||
|
||||
|
|
Loading…
Reference in a new issue