Patch Set 1:

> (1 comment)

After reading the spec again, getting localtime from sqlite is wrong anyway. It 
should be as it is: Use UTC and specific the timezone offset in libosmocore in 
gsm340_gen_scts().

Only I'm getting tm->tm_gmtoff = 0 and tm->tm_zone = GMT. from gmtime() there, 
even though the box running the nitb is all setup for CEST.
I set TZ before running osmo-nitb.

What's more, If I manually over ride tm->tm_gmtoff in gsm340_gen_scts():
    -*scts++ = gsm411_bcdify(tm->tm_gmtoff/(60*15));
    +*scts++ = gsm411_bcdify(8);
the phone still shows the message received two hours before it was sent :-/

-- 
To view, visit https://gerrit.osmocom.org/3540
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I9056429d40bf02731f004b7833f1de45a0d1add8
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Keith Whyte <[email protected]>
Gerrit-Reviewer: Holger Freyther <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Keith Whyte <[email protected]>
Gerrit-Reviewer: Pablo Neira Ayuso <[email protected]>
Gerrit-HasComments: No

Reply via email to