diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-09-02 11:55:51 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-09-02 11:55:51 +0200 |
commit | 177c77ca1e3045e77853014a37e712681e175e22 (patch) | |
tree | abf420320e9e398c0b4b8cbfd6d87ab506fad2ed /runtime/datetime.c | |
parent | d11e8221a8b9592bca7f219cc3d3cf3359273ba1 (diff) | |
download | rsyslog-177c77ca1e3045e77853014a37e712681e175e22.tar.gz rsyslog-177c77ca1e3045e77853014a37e712681e175e22.tar.bz2 rsyslog-177c77ca1e3045e77853014a37e712681e175e22.zip |
apply default TZ if none is present in legacy timestamp
Diffstat (limited to 'runtime/datetime.c')
-rw-r--r-- | runtime/datetime.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/datetime.c b/runtime/datetime.c index 841ff625..3d50238c 100644 --- a/runtime/datetime.c +++ b/runtime/datetime.c @@ -626,6 +626,15 @@ finalize_it: RETiRet; } +void +applyDfltTZ(struct syslogTime *pTime, char *tz) +{ + pTime->OffsetMode = tz[0]; + pTime->OffsetHour = (tz[1] - '0') * 10 + (tz[2] - '0'); + pTime->OffsetMinute = (tz[4] - '0') * 10 + (tz[5] - '0'); + +} + /******************************************************************* * END CODE-LIBLOGGING * *******************************************************************/ |