Thanks for your email, however I'm not the original author, I packaged it for T2. I suggest to also contact the author to get it in.

Greetings,
  René

Sent abroad - http://ExactCODE.com Germany.

On 30 Jun 2010, at 20:29, Ivo Přikryl <[email protected]> wrote:

Hi,

I was playing with gsmlib and linking it against my SW today.

I believe, I found a problem in gsm_sms_codec.cc, in the TimeZone calculation routine. The value of "negativeTimeZone" is not calculated correctly. The way is it was in my version of GSM lib (1.11), the negativeTimezone was always "0".

I changed it like this and it seems to work properly on every timezone now.

file: gsm_sms_codec.cc
line 364

     if (i == 0)
     {                         // get sign
       result = result * 10 + (*_op & 0x7);
-        negativeTimeZone = ( *_op & 0x8 == 0x0 );
+        negativeTimeZone = ( (*_op & 0x8) == 0x8 );
     }

Sincerely
Ivo
--

--
****************************************
Ivo Přikryl
[email protected]
EuroSat cs spol.s r.o.
www.eurosat.cz
*****************************************

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to