Improve audit date handling

This commit is contained in:
Ross Scroggs
2016-06-25 13:28:25 -07:00
parent 0f84ee1e07
commit 4b380be637
2 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@ If an item contains spaces, it should be surrounded by " or '.
<Second> ::= <Digit><Digit>
<MilliSeconds> ::= <Digit><Digit><Digit>
<Date> ::= <Year>-<Month>-<Day>
<DateTime> ::= <Year>-<Month>-<Day> <Hour>:<Minute>
<DateTime> ::= <Year>-<Month>-<Day>(<Space>|T)<Hour>:<Minute>
<Time> ::= <Year>-<Month>-<Day>(<Space>|T)<Hour>:<Minute>[:<Second>[.<MilliSeconds>[Z]]]
<PrintJobAge> ::= <Number>(m|h|d)
<UniqueID> ::= uid:<String>

View File

@ -8457,10 +8457,10 @@ def doCreateMonitor():
i = 6
while i < len(sys.argv):
if sys.argv[i].lower() == u'end':
end_date = sys.argv[i+1]
end_date = sys.argv[i+1].strip().replace(u'T', u' ')
i += 2
elif sys.argv[i].lower() == u'begin':
begin_date = sys.argv[i+1]
begin_date = sys.argv[i+1].strip().replace(u'T', u' ')
i += 2
elif sys.argv[i].lower() == u'incoming_headers':
incoming_headers_only = True
@ -8601,10 +8601,10 @@ def doRequestExport():
i = 5
while i < len(sys.argv):
if sys.argv[i].lower() == u'begin':
begin_date = sys.argv[i+1]
begin_date = sys.argv[i+1].strip().replace(u'T', u' ')
i += 2
elif sys.argv[i].lower() == u'end':
end_date = sys.argv[i+1]
end_date = sys.argv[i+1].strip().replace(u'T', u' ')
i += 2
elif sys.argv[i].lower() == u'search':
search_query = sys.argv[i+1]