Fix: parse timestamp
This commit is contained in:
parent
3d09075af1
commit
c55a562ee1
@ -942,7 +942,7 @@ class ModemSMS {
|
|||||||
let sender,timestamp,content,part,total,index;
|
let sender,timestamp,content,part,total,index;
|
||||||
sender = msg.sender;
|
sender = msg.sender;
|
||||||
if (typeof(msg.timestamp) == "number") {
|
if (typeof(msg.timestamp) == "number") {
|
||||||
timestamp = new Date(msg.timestamp*1000).toLocaleString();
|
timestamp = new Date(msg.timestamp*1000).toISOString()
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
timestamp = msg.timestamp;
|
timestamp = msg.timestamp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user