forked from lbsadmin/nodeMessageBoard
Changed timestamp parsing
This commit is contained in:
parent
c6290acfc9
commit
33de2725f8
@ -141,7 +141,7 @@ function serialListener(debug)
|
|||||||
numberStringRecieved = data;
|
numberStringRecieved = data;
|
||||||
numberRecieved = data.substring(data.indexOf('+CMT: "') + 7, data.indexOf('",'));
|
numberRecieved = data.substring(data.indexOf('+CMT: "') + 7, data.indexOf('",'));
|
||||||
numberRecieved = ucs2Parse(numberRecieved);
|
numberRecieved = ucs2Parse(numberRecieved);
|
||||||
timeRecieved = data.substring(data.indexOf('","","') + 15, data.indexOf('+04'));
|
timeRecieved = data.substring(data.indexOf('","","') + 15, data.indexOf('+0')); // the end of this string has to do with time zone and daylightsaving time mode
|
||||||
} else if (data.length > 1) {
|
} else if (data.length > 1) {
|
||||||
|
|
||||||
if(numberRecieved){
|
if(numberRecieved){
|
||||||
|
Loading…
Reference in New Issue
Block a user