mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
fix some of the broken tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923795 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
50dcbd390b
commit
961c83fb4e
@ -718,8 +718,9 @@ class TestDateUtil {
|
||||
void timeOnly() {
|
||||
final double d = 22.0 / 24.0; // 22:00 (10pm)
|
||||
final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ", LocaleUtil.getUserLocale());
|
||||
sdf.setTimeZone(LocaleUtil.getUserTimeZone());
|
||||
final Date date = DateUtil.getJavaDate(d, false);
|
||||
assertEquals("1899-12-31T23:00:00.000+0100", sdf.format(date));
|
||||
assertEquals("1899-12-31T22:00:00.000+0000", sdf.format(date));
|
||||
|
||||
final Date date1904 = DateUtil.getJavaDate(d, true);
|
||||
assertEquals("1904-01-01T22:00:00.000+0000", sdf.format(date1904));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user