summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-05 07:56:57 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-05 07:56:57 +0100
commitb3c8528b5087289c9b1f357f98f890190a5621a0 (patch)
treead0cefb7902ab3de9b2d2fb72be2bcbb8ddadcbf /template.c
parent5402ba982fd8c9bb9ce7fab43ddabaa174ab0794 (diff)
downloadrsyslog-b3c8528b5087289c9b1f357f98f890190a5621a0.zip
rsyslog-b3c8528b5087289c9b1f357f98f890190a5621a0.tar.gz
rsyslog-b3c8528b5087289c9b1f357f98f890190a5621a0.tar.xz
added new property replacer option "date-rfc3164-buggyday"
primarily to ease migration from syslog-ng. See property replacer doc for details.
Diffstat (limited to 'template.c')
-rw-r--r--template.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/template.c b/template.c
index d74da47..050905b 100644
--- a/template.c
+++ b/template.c
@@ -487,6 +487,8 @@ static void doOptions(unsigned char **pp, struct templateEntry *pTpe)
pTpe->data.field.eDateFormat = tplFmtPgSQLDate;
} else if(!strcmp((char*)Buf, "date-rfc3164")) {
pTpe->data.field.eDateFormat = tplFmtRFC3164Date;
+ } else if(!strcmp((char*)Buf, "date-rfc3164-buggyday")) {
+ pTpe->data.field.eDateFormat = tplFmtRFC3164BuggyDate;
} else if(!strcmp((char*)Buf, "date-rfc3339")) {
pTpe->data.field.eDateFormat = tplFmtRFC3339Date;
} else if(!strcmp((char*)Buf, "date-subseconds")) {