diff mbox

[FIX,2/2] fixup! sms: Fix support of negative timezone offsets in gsm340_gen_scts().

Message ID 0d0003b8fc6be13f400a1407f88b165d3e8af272.1395869732.git.daniel@totalueberwachung.de
State New
Headers show

Commit Message

Daniel Willmann March 26, 2014, 9:44 p.m. UTC
---
 src/gsm/gsm0411_utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/src/gsm/gsm0411_utils.c b/src/gsm/gsm0411_utils.c
index 3052dd7..b8a7b10 100644
--- a/src/gsm/gsm0411_utils.c
+++ b/src/gsm/gsm0411_utils.c
@@ -89,7 +89,7 @@  void gsm340_gen_scts(uint8_t *scts, time_t time)
 	if (tm->tm_gmtoff >= 0)
 		*scts++ = gsm411_bcdify(tm->tm_gmtoff/(60*15));
 	else
-		*scts++ = gsm411_bcdify(-tm->tm_gmtoff/(60*15)) | 0x80;
+		*scts++ = gsm411_bcdify(-tm->tm_gmtoff/(60*15)) | 0x08;
 #else
 #warning find a portable way to obtain timezone offset
 	*scts++ = 0;