+#include <stdio.h>
/* ASN.1 primitive decoders */
#include "asn1_decode.h"
#include "asn1_get.h"
t = mktime(&ts);
if(t == -1) return ASN1_BAD_TIMEFORMAT;
+#define HAVE_GMTOFF
#ifdef HAVE_GMTOFF
t += ts.tm_gmtoff; /* Convert back to UTC timezone */
#else
delta = (zl.tm_sec + 60*(zl.tm_min+60*(zl.tm_hour + 24*zl.tm_yday)))
- (zg.tm_sec + 60*(zg.tm_min+60*(zg.tm_hour + 24*zg.tm_yday)));
+ if (ts.tm_isdst > 0) {
+ delta += 60*60;
+ }
+
+fprintf(stderr, "ASN1 DECODE: delta = %d\n", delta);
t += delta;
}
#endif