From 733810c656fa9ec50a4223b0c15070ba1fd758cf Mon Sep 17 00:00:00 2001 From: Keith Date: Thu, 17 Aug 2017 21:37:47 +0200 Subject: 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 --- src/gsm/gsm0411_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gsm') 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); -- cgit v1.2.3