It think we may provide a way to set the zone by checking the System variable such TZ[1], if we cannot find the variable, we could use the system default as a fallback with some log information.
[1]https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html Willem Jiang Twitter: willemjiang Weibo: 姜宁willem On Thu, Dec 12, 2019 at 4:51 PM Ang Li <liang951...@qq.com> wrote: > > Hi Team, > I am currently solving issue > [SBC-1559](https://issues.apache.org/jira/browse/SCB-1559). The core idea of > this issue is using java.time.Clock instead > of java.lang.System#currentTimeMillis to get time for mocking > purpose. > java.time.Clock provides many different ways to generate a clock. I am > wondering which one should we use and do we need to specify a zone? > Thanks a lot if someone can help. > > > -------------------------------------- > Ang Li