提交 5fd30e8b authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Fix TestDateTimeUtils.testDayOfWeek()

上级 8678a122
...@@ -45,7 +45,7 @@ public class TestDateTimeUtils extends TestBase { ...@@ -45,7 +45,7 @@ public class TestDateTimeUtils extends TestBase {
* {@link DateTimeUtils#getIsoDayOfWeek(long)}. * {@link DateTimeUtils#getIsoDayOfWeek(long)}.
*/ */
private void testDayOfWeek() { private void testDayOfWeek() {
GregorianCalendar gc = DateTimeUtils.createGregorianCalendar(); GregorianCalendar gc = DateTimeUtils.createGregorianCalendar(DateTimeUtils.UTC);
for (int i = -1_000_000; i <= 1_000_000; i++) { for (int i = -1_000_000; i <= 1_000_000; i++) {
gc.clear(); gc.clear();
gc.setTimeInMillis(i * 86400000L); gc.setTimeInMillis(i * 86400000L);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论