https://issues.apache.org/bugzilla/show_bug.cgi?id=53494

Trejkaz (pen name) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #6 from Trejkaz (pen name) <[email protected]> ---
    @Test
    public void testCellFormatDateLocales() throws Exception
    {
        CellFormat englishFormat = CellFormat.getInstance("[$-409]mmmm dd yyyy 
h:mm AM/PM");
        assertThat(englishFormat.apply(26995.477777777778).text,
is(equalTo("November 27 1973  11:28 AM")));

        CellFormat chineseFormat = CellFormat.getInstance("[$-804]mmmm dd yyyy 
h:mm AM/PM");
        assertThat(chineseFormat.apply(26995.477777777778).text,
is(equalTo("\u5341\u4E00\u6708 27 1973  11:28 \u4E0A\u5348")));
    }

This should be enough to reproduce it. I'm not 100% sure if the expected text
is exactly correct because I took this double value from the debugger while our
own test was running and floating point often ruins precision...

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to