mirror of https://gerrit.osmocom.org/libosmocore
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
This commit is contained in:
parent
bd3bb135a4
commit
733810c656
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue