RE: [PATCH] CIMD2 time error

"Angel Fradejas" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
>Now i dont have smsc_time anymore... With 1.3.1 i had it perfectly.
>
>&time=%t gives me 1970-01-01
>
>Illimar

Try this additional patch to timestamp MOs properly.

Please, commit before 1.3.2.

Thanks Illimar for reporting.

Angel Fradejas
Mediafusión España, S.A.
[email protected]
www.mediafusion.es
Tel +34 91 252 32 00
Fax +34 91 572 27 08
cimd2_time.diff (application/octet-stream, 527 B)
Index: gw/smsc/smsc_cimd2.c
===================================================================
RCS file: /home/cvs/gateway/gw/smsc/smsc_cimd2.c,v
retrieving revision 1.10
diff -u -r1.10 smsc_cimd2.c
--- gw/smsc/smsc_cimd2.c	3 Apr 2003 12:18:18 -0000	1.10
+++ gw/smsc/smsc_cimd2.c	14 May 2003 09:52:42 -0000
@@ -1569,6 +1570,7 @@
 	debug("CIMD2", 0, "Invalid DCS");
 	dcs_to_fields(&message, 0);
     }
+    time(&message->sms.time);
     message->sms.sender = origin;
     message->sms.receiver = destination;
     if (UDH) {
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.