Gerrit time search operators is not working when specify to second

安稳与你 提交于 2019-12-11 15:19:58

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!