Re: [PATCH] SMPP validity

Vibhu Mohindra <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
>   gmtime = gw_gmtime(time(NULL));
>   localtime = gw_localtime(time(NULL));
>   gwqdiff = ((localtime.tm_hour - gmtime.tm_hour) * 4)
>                    + ((localtime.tm_min - gmtime.tm_min) / 15);
>  +gwqdiff = gwqdiff>12?gwqdiff-24:gwqdiff;
>  +gwqdiff = gwqdiff<12?gwqdiff+24:gwqdiff;

Oops I meant

  +gwqdiff = gwqdiff>12?gwqdiff-24:gwqdiff;
  +gwqdiff = gwqdiff<-12?gwqdiff+24:gwqdiff;

Vibhu
signature.asc (application/pgp-signature, 232 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9ZOhxvgqsqbNQjqcRAi2QAJ0XXyceWH7HSI+LsY/NqcqB82veCQCfZ37W
6s9tfFwP2gJiJJMPzh/zDfc=
=Tq/L
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.