Gerrit time search operators is not working when s

2019-08-28 21:32发布

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?

标签: url gerrit
1条回答
淡お忘
2楼-- · 2019-08-28 22:17

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"

查看更多
登录 后发表回答