diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-06-16 17:53:29 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-06-16 17:53:29 +0200 |
commit | 3135b3335d711c2638f1fedc867fb966008e2361 (patch) | |
tree | ca5215f503568a7cacca485d39e776b7530f4120 | |
parent | a201de795ad630ddf81fea9f7bbb13ad79bdfff4 (diff) | |
parent | da52cbae520e747568162ad558bf01d40658c745 (diff) | |
download | rsyslog-3135b3335d711c2638f1fedc867fb966008e2361.tar.gz rsyslog-3135b3335d711c2638f1fedc867fb966008e2361.tar.xz rsyslog-3135b3335d711c2638f1fedc867fb966008e2361.zip |
Merge branch 'v3-stable' into v4-stable
Conflicts:
runtime/datetime.c
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | runtime/datetime.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -55,6 +55,9 @@ Version 4.6.6 [v4-stable] (rgerhards), 2010-11-?? discarded (due to QUEUE_FULL or similar problem) - bugfix: a slightly more informative error message when a TCP connections is aborted +- bugfix: timestamp was incorrectly calculated for timezones with minute + offset + closes: http://bugzilla.adiscon.com/show_bug.cgi?id=271 - some improvements thanks to clang's static code analyzer o overall cleanup (mostly unnecessary writes and otherwise unused stuff) o bugfix: fixed a very remote problem in msg.c which could occur when @@ -688,6 +691,9 @@ version before switching to this one. Thanks to Ken for providing the patch --------------------------------------------------------------------------- Version 3.22.4 [v3-stable] (rgerhards), 2010-??-?? +- bugfix: timestamp was incorrectly calculated for timezones with minute + offset + closes: http://bugzilla.adiscon.com/show_bug.cgi?id=271 - improved some code based on clang static analyzer results --------------------------------------------------------------------------- Version 3.22.3 [v3-stable] (rgerhards), 2010-11-24 diff --git a/runtime/datetime.c b/runtime/datetime.c index eff72f91..593c3d5c 100644 --- a/runtime/datetime.c +++ b/runtime/datetime.c @@ -122,7 +122,7 @@ static void getCurrTime(struct syslogTime *t, time_t *ttSeconds) else t->OffsetMode = '+'; t->OffsetHour = lBias / 3600; - t->OffsetMinute = lBias % 3600; + t->OffsetMinute = (lBias % 3600) / 60; t->timeType = TIME_TYPE_RFC5424; /* we have a high precision timestamp */ } |