aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2010-03-10 23:05:56 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2010-03-10 23:05:56 +0000
commite19f685ad7991df45dcc7114e53f7ebeb4a12d6c (patch)
tree843fc007b83bc29b8c7aca5b92f19f3d80454053
parentd02b460727f8252825c29e93fb93c67b29f30a62 (diff)
minutes fix, courtesy IP Fabrics, Inc.
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1408 59561ff5-6e30-0410-9f3c-9617f08c8826
-rw-r--r--skeletons/GeneralizedTime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/skeletons/GeneralizedTime.c b/skeletons/GeneralizedTime.c
index 2f84dff9..9d683efe 100644
--- a/skeletons/GeneralizedTime.c
+++ b/skeletons/GeneralizedTime.c
@@ -666,7 +666,7 @@ asn_time2GT_frac(GeneralizedTime_t *opt_gt, const struct tm *tm, int frac_value,
int ret;
gmtoff %= 86400;
ret = snprintf(p, buf_size - size, "%+03ld%02ld",
- gmtoff / 3600, labs(gmtoff % 3600));
+ gmtoff / 3600, labs(gmtoff % 3600) / 60);
if(ret != 5) {
FREEMEM(buf);
errno = EINVAL;