From cd394d387599f426a2d539070d18ac1a1bd89698 Mon Sep 17 00:00:00 2001 From: Peter John Hartman Date: Sun, 2 Apr 2023 23:05:01 -0500 Subject: [PATCH] Previously sms messages were not guaranteed to be formatted with the country code if the carrier didn't provide it. This forces it to use the DEFAULT_COUNTRY variable if set. (Thanks to Kyle Eveleth.) --- scripts/modem/sxmo_modem.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/modem/sxmo_modem.sh b/scripts/modem/sxmo_modem.sh index 4cc6533..f4b037c 100755 --- a/scripts/modem/sxmo_modem.sh +++ b/scripts/modem/sxmo_modem.sh @@ -208,6 +208,7 @@ checkfornewtexts() { grep sms.content.number | sed -E 's/^sms\.content\.number\s+:\s+//' )" + NUM="$(cleanupnumber "$NUM")" TIME="$(echo "$TEXTDATA" | grep sms.properties.timestamp | sed -E 's/^sms\.properties\.timestamp\s+:\s+//')" TIME="$(date +%FT%H:%M:%S%z -d "$TIME")"