aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith <keith@rhizomatica.org>2017-08-17 21:37:47 +0200
committerKeith <keith@rhizomatica.org>2017-08-17 21:43:37 +0200
commit733810c656fa9ec50a4223b0c15070ba1fd758cf (patch)
tree974409f1edaab5fe15419241fa12348f0ab7a96c
parentbd3bb135a4c6be29d80fb687ffcdc56c9cd8b6bc (diff)
gsm0411_utils: GSM03.40 9.2.3.11 SCTS should be local
From GSM 03.40: "The Service-Centre-Time-Stamp, and any other times coded in this format that are defined in this specification, represent the time local to the sending entity." Change-Id: I4efdb1eaae43aced33961b64d4f14b0040321c10
-rw-r--r--src/gsm/gsm0411_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsm/gsm0411_utils.c b/src/gsm/gsm0411_utils.c
index 1d3ef49f..a4e9d0d1 100644
--- a/src/gsm/gsm0411_utils.c
+++ b/src/gsm/gsm0411_utils.c
@@ -89,7 +89,7 @@ uint8_t gsm411_unbcdify(uint8_t value)
* \param[in] time to encode */
void gsm340_gen_scts(uint8_t *scts, time_t time)
{
- struct tm *tm = gmtime(&time);
+ struct tm *tm = localtime(&time);
*scts++ = gsm411_bcdify(tm->tm_year % 100);
*scts++ = gsm411_bcdify(tm->tm_mon + 1);