mirror of
https://github.com/s00500/nodeMessageBoard.git
synced 2024-12-22 03:00:50 +00:00
Changed timestamp parsing
This commit is contained in:
parent
c6290acfc9
commit
33de2725f8
@ -141,7 +141,7 @@ function serialListener(debug)
|
||||
numberStringRecieved = data;
|
||||
numberRecieved = data.substring(data.indexOf('+CMT: "') + 7, data.indexOf('",'));
|
||||
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) {
|
||||
|
||||
if(numberRecieved){
|
||||
|
Loading…
Reference in New Issue
Block a user