Skip to content

Commit

Permalink
fix some of the broken tests
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923795 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
pjfanning committed Feb 13, 2025
1 parent 50dcbd3 commit 961c83f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -718,8 +718,9 @@ void bug56269() {
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));
Expand Down

0 comments on commit 961c83f

Please sign in to comment.