Commit 972a9fed authored by Iván Sánchez Ortega's avatar Iván Sánchez Ortega

Fix parsing dates of twitter DMs

parent eed2d079
......@@ -434,7 +434,7 @@ class TwitterAccount extends Account {
let str = this._cleanString(msg.direct_message.text, msg.direct_message.entities);
return {
timestamp: Date.parse(msg.created_at),
timestamp: Date.parse(msg.direct_message.created_at),
itemPromise: Promise.resolve({
accountNumber: this._accountNumber,
accountId: this._id,
......@@ -445,7 +445,7 @@ class TwitterAccount extends Account {
channel: 'DM',
raw: channel && msg,
media: this._cleanMedia(msg.direct_message),
timestamp: Date.parse(msg.created_at),
timestamp: Date.parse(msg.direct_message.created_at),
})
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment