提交 3cb4d24e authored 作者: Noel Grandin's avatar Noel Grandin

Revert "back out earlier #458 fix"

This reverts commit a45edd78.
上级 a45edd78
......@@ -1880,6 +1880,7 @@ public class Function extends Expression implements FunctionCall {
default:
break;
}
calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
calendar.setTimeInMillis(t1);
int year1 = calendar.get(Calendar.YEAR);
int month1 = calendar.get(Calendar.MONTH);
......
......@@ -9935,12 +9935,6 @@ select datediff('year', timestamp '2003-12-01 10:20:30.0', timestamp '2004-12-01
> 1
> rows: 1
select datediff('yy', timestamp '2002-12-31 23:59:59.0', timestamp '2003-01-01 13:00:00.0') d1 from test;
> D1
> --
> 0
> rows: 1
select datediff('mm', timestamp '2003-11-01 10:20:30.0', timestamp '2004-01-01 10:00:00.0') d2 from test;
> D2
> --
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论