问题
If i'm using
/changes/?q=status:merged+after:2018-08-25
it can return the result,
however if using
/changes/?q=status:merged+after:2018-08-25 00:00:00
it returns []
According to document, it is able to search time like this.
[[after_since]]
after:'TIME'/since:'TIME'::
+
Changes modified after the given 'TIME', inclusive. Must be in the
format `2006-01-02[ 15:04:05[.890][ -0700]]`; omitting the time defaults
to 00:00:00 and omitting the timezone defaults to UTC.
How to query when specify time to second? Is my format of parameters wrong?
回答1:
When using:
/changes/?q=status:merged+after:2018-08-25 00:00:00
only the 2018-08-25
part is being used as the after:
value. The 00:00:00
part is being used as a free text query term.
The value of after:
should be enclosed in quotes:
/changes/?q=status:merged+after:"2018-08-25 00:00:00"
来源:https://stackoverflow.com/questions/52031757/gerrit-time-search-operators-is-not-working-when-specify-to-second