From: Nick Burch Date: Wed, 12 Apr 2006 18:00:38 +0000 (+0000) Subject: Need right date in the test formatter X-Git-Tag: REL_3_0_ALPHA3~127 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d3f6caf28ca0a2fba3be47a75da58d69ead11670;p=poi.git Need right date in the test formatter git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@393552 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000.java b/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000.java index c4fd8f83cc..bb0462ac66 100644 --- a/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000.java +++ b/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000.java @@ -84,7 +84,7 @@ public class TestComment2000 extends TestCase { 0x0A, 00, 00, 00 }; - private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss.SSS"); + private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); public void testRecordType() throws Exception { Comment2000 ca = new Comment2000(data_a, 0, data_a.length); diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000Atom.java b/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000Atom.java index 0c47e30b9a..fc3661291e 100644 --- a/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000Atom.java +++ b/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000Atom.java @@ -47,7 +47,7 @@ public class TestComment2000Atom extends TestCase { 0x0E, 00, 00, 00 }; - private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss.SSS"); + private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); public void testRecordType() throws Exception { Comment2000Atom ca = new Comment2000Atom(data_a, 0, data_a.length); @@ -58,7 +58,7 @@ public class TestComment2000Atom extends TestCase { Comment2000Atom ca = new Comment2000Atom(data_a, 0, data_a.length); Comment2000Atom cb = new Comment2000Atom(data_b, 0, data_b.length); - // A is 2006-01-24 (2nd day of week) 20:26:15.205 + // A is 2006-01-24 (2nd day of week) 10:26:15.205 Date exp_a = sdf.parse("2006-01-24 10:26:15.205"); // B is 2006-01-24 (2nd day of week) 21:25:03.725 Date exp_b = sdf.parse("2006-01-24 21:25:03.725");