decode also seconds in date_time if available, for the dutch.

This commit is contained in:
Carsten Paeth 1998-02-05 08:23:24 +00:00
parent 9948ffba06
commit 949f28da8f

View file

@ -19,6 +19,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Log$ * $Log$
* Revision 1.12 1997/10/08 05:37:10 calle
* Added AVM B1 support to isdnlog, patch is from i4l@tenere.saar.de.
*
* Revision 1.11 1997/09/07 00:43:12 luethje * Revision 1.11 1997/09/07 00:43:12 luethje
* create new error messages for isdnrep * create new error messages for isdnrep
* *
@ -1906,7 +1909,13 @@ static void decode(int chan, register char *p, int type, int version)
tm.tm_hour = strtol(p += 3, NIL, 16); tm.tm_hour = strtol(p += 3, NIL, 16);
tm.tm_min = strtol(p += 3, NIL, 16); tm.tm_min = strtol(p += 3, NIL, 16);
if (l > 5) {
tm.tm_sec = strtol(p += 3, NIL, 16);
if (l > 6)
p += (l - 6) * 3;
} else {
tm.tm_sec = 0; tm.tm_sec = 0;
}
tm.tm_wday = tm.tm_yday = 0; tm.tm_wday = tm.tm_yday = 0;
tm.tm_isdst = -1; tm.tm_isdst = -1;