You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "yuemeng (JIRA)" <ji...@apache.org> on 2017/07/12 12:40:00 UTC
[jira] [Commented] (CALCITE-1884) dateStringToUnixDate() /
unixDateToString() returns wrong results
[ https://issues.apache.org/jira/browse/CALCITE-1884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16083909#comment-16083909 ]
yuemeng commented on CALCITE-1884:
----------------------------------
[~haohuily]
Is this issue block the flink to update calcite from 1.12.0 to 1.13.0?
I will fixed this issue later
> dateStringToUnixDate() / unixDateToString() returns wrong results
> -----------------------------------------------------------------
>
> Key: CALCITE-1884
> URL: https://issues.apache.org/jira/browse/CALCITE-1884
> Project: Calcite
> Issue Type: Bug
> Components: avatica
> Affects Versions: 1.13.0
> Reporter: Haohui Mai
> Assignee: yuemeng
>
> dateStringToUnixDate() / unixDateToString() do not return consistent result.
> The following test fails:
> {noformat}
> @Test public void testUnixDate() {
> int days = DateTimeUtils.dateStringToUnixDate("1500-04-30");
> assertEquals("1500-04-30", DateTimeUtils.unixDateToString(days));
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)