Gerrit 搜索通过 'before' 语句更改并出现一些问题
Gerrit search changes via 'before' statement and got some issue
我的 Gerrit 版本是 3.1.2,我的时区是
我有一个在 2020-05-07 21:27
创建并在 2020-05-07 21:32
合并的更改。然后我尝试搜索此更改。
我按条件 before: 2020-05-07 23:59:00
搜索,但找不到此更改。
我按条件 before: 2020-05-08 00:01:00
搜索并找到了此更改。
有没有关于这个问题的想法或者无论如何要向 Gerrit 报告这个问题?
谢谢
我找到了问题并分享它。根据 Gerrit 文档页面:https://gerrit-review.googlesource.com/Documentation/user-search.html
before:'TIME'/until:'TIME'
Changes modified before 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.
由于gerrit使用UTC作为时区,我需要将时间添加为[-0700]。例如,如果我的时区是 UTC +4 小时,我需要搜索为
before "2020-05-07 21:40:00 +0400"
,这个问题将得到解决。请注意 "
是必需的。
谢谢
我的 Gerrit 版本是 3.1.2,我的时区是
我有一个在 2020-05-07 21:27
创建并在 2020-05-07 21:32
合并的更改。然后我尝试搜索此更改。
我按条件 before: 2020-05-07 23:59:00
搜索,但找不到此更改。
我按条件 before: 2020-05-08 00:01:00
搜索并找到了此更改。
有没有关于这个问题的想法或者无论如何要向 Gerrit 报告这个问题?
谢谢
我找到了问题并分享它。根据 Gerrit 文档页面:https://gerrit-review.googlesource.com/Documentation/user-search.html
before:'TIME'/until:'TIME'
Changes modified before 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.
由于gerrit使用UTC作为时区,我需要将时间添加为[-0700]。例如,如果我的时区是 UTC +4 小时,我需要搜索为
before "2020-05-07 21:40:00 +0400"
,这个问题将得到解决。请注意 "
是必需的。
谢谢