Commit a4347cc3 authored by Lev Walkin's avatar Lev Walkin

minutes fix, courtesy IP Fabrics, Inc.

parent b2bfca53
...@@ -666,7 +666,7 @@ asn_time2GT_frac(GeneralizedTime_t *opt_gt, const struct tm *tm, int frac_value, ...@@ -666,7 +666,7 @@ asn_time2GT_frac(GeneralizedTime_t *opt_gt, const struct tm *tm, int frac_value,
int ret; int ret;
gmtoff %= 86400; gmtoff %= 86400;
ret = snprintf(p, buf_size - size, "%+03ld%02ld", ret = snprintf(p, buf_size - size, "%+03ld%02ld",
gmtoff / 3600, labs(gmtoff % 3600)); gmtoff / 3600, labs(gmtoff % 3600) / 60);
if(ret != 5) { if(ret != 5) {
FREEMEM(buf); FREEMEM(buf);
errno = EINVAL; errno = EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment