2
1
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:
Lukas Bachschwell 2016-04-04 19:07:22 +02:00
parent c6290acfc9
commit 33de2725f8

View File

@ -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){