diff options
Diffstat (limited to 'template.c')
-rw-r--r-- | template.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -192,6 +192,10 @@ static void doOptions(char **pp, struct templateEntry *pTpe) */ if(!strcmp(Buf, "date-mysql")) { pTpe->data.field.eDateFormat = tplFmtMySQLDate; + } else if(!strcmp(Buf, "date-rfc3164")) { + pTpe->data.field.eDateFormat = tplFmtRFC3164Date; + } else if(!strcmp(Buf, "date-rfc3339")) { + pTpe->data.field.eDateFormat = tplFmtRFC3339Date; } else if(!strcmp(Buf, "lowercase")) { pTpe->data.field.eCaseConv = tplCaseConvLower; } else if(!strcmp(Buf, "uppercase")) { @@ -449,6 +453,12 @@ void tplPrintList(void) case tplFmtMySQLDate: dprintf("[Format as MySQL-Date] "); break; + case tplFmtRFC3164Date: + dprintf("[Format as RFC3164-Date] "); + break; + case tplFmtRFC3339Date: + dprintf("[Format as RFC3339-Date] "); + break; } switch(pTpe->data.field.eCaseConv) { case tplCaseConvNo: |