From 2483f8db7b1ffa0c0f476b228ed4fdda939fb178 Mon Sep 17 00:00:00 2001 From: brenosilva Date: Thu, 20 Oct 2011 18:22:21 +0000 Subject: [PATCH] MODSEC-273 --- apache2/msc_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache2/msc_util.c b/apache2/msc_util.c index 645b95ba..ebd3fb0a 100644 --- a/apache2/msc_util.c +++ b/apache2/msc_util.c @@ -626,7 +626,7 @@ char *current_logtime(apr_pool_t *mp) { apr_strftime(tstr, &len, 80, "%d/%b/%Y:%H:%M:%S ", &t); apr_snprintf(tstr + strlen(tstr), 80 - strlen(tstr), "%c%.2d%.2d", t.tm_gmtoff < 0 ? '-' : '+', - t.tm_gmtoff / (60 * 60), t.tm_gmtoff % (60 * 60)); + t.tm_gmtoff / (60 * 60), (t.tm_gmtoff / 60) % 60); return apr_pstrdup(mp, tstr); }