[syslog-ng] Re: day macro

Balazs Scheidler [email protected]
Sun, 21 Nov 1999 15:35:58 +0100


On Sat, Nov 20, 1999 at 03:19:03PM -0800, Chris Scheller wrote:
> i had not heard a response so i thought i would ask again. when i add the
> $DAY macro to a destination the date come out 1 day ahead. I thought maybe
> it wasn't taking into accoutn GMT or something similar, but everything
> seems to be correct. any ideas?

apply this patch:

--- affile.c    1999/11/20 19:13:39     1.23
+++ affile.c    1999/11/21 14:35:09
@@ -317,7 +317,7 @@
                        ADD_MACRO_ARG(c_format("%02i", tm->tm_mon + 1));
                        break;
                case 'd':
-                       ADD_MACRO_ARG(c_format("%02i", tm->tm_mday + 1));
+                       ADD_MACRO_ARG(c_format("%02i", tm->tm_mday));
                        break;
                }
                break;


-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
     url: http://www.balabit.hu/pgpkey.txt