aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openbsc/src/gsm_04_11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c
index 05e55d4dc..16c5c079b 100644
--- a/openbsc/src/gsm_04_11.c
+++ b/openbsc/src/gsm_04_11.c
@@ -257,7 +257,7 @@ static void gsm340_gen_scts(u_int8_t *scts, time_t time)
struct tm *tm = localtime(&time);
*scts++ = bcdify(tm->tm_year % 100);
- *scts++ = bcdify(tm->tm_mon);
+ *scts++ = bcdify(tm->tm_mon + 1);
*scts++ = bcdify(tm->tm_mday);
*scts++ = bcdify(tm->tm_hour);
*scts++ = bcdify(tm->tm_min);