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.)
This commit is contained in:
Peter John Hartman
2023-04-02 23:05:01 -05:00
parent f630b2bbdb
commit cd394d3875

View File

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