diff options
author | Thomas Knall <t.knall@datentechnik-innovation.com> | 2014-11-25 13:01:35 +0100 |
---|---|---|
committer | Thomas Knall <t.knall@datentechnik-innovation.com> | 2014-11-25 13:01:35 +0100 |
commit | fb97db9b264b65bc87963eee719c2e433488853c (patch) | |
tree | 819b381849e33fa16107538b81150664cddf4168 /common/src/test/java | |
parent | d01c8e2a11d142f94c4834f2e2c61afd4b267c03 (diff) | |
download | moa-id-spss-fb97db9b264b65bc87963eee719c2e433488853c.tar.gz moa-id-spss-fb97db9b264b65bc87963eee719c2e433488853c.tar.bz2 moa-id-spss-fb97db9b264b65bc87963eee719c2e433488853c.zip |
Fix buggy test.
Diffstat (limited to 'common/src/test/java')
-rw-r--r-- | common/src/test/java/test/at/gv/egovernment/moa/util/DateTimeUtilsTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/src/test/java/test/at/gv/egovernment/moa/util/DateTimeUtilsTest.java b/common/src/test/java/test/at/gv/egovernment/moa/util/DateTimeUtilsTest.java index 5b7a92004..e3468b89f 100644 --- a/common/src/test/java/test/at/gv/egovernment/moa/util/DateTimeUtilsTest.java +++ b/common/src/test/java/test/at/gv/egovernment/moa/util/DateTimeUtilsTest.java @@ -51,7 +51,8 @@ public class DateTimeUtilsTest extends TestCase { public void testParseDateTimeValid() throws Exception { Date date; - DateFormat format = SimpleDateFormat.getDateTimeInstance(); + DateFormat format = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss"); + String dateStr; format.setTimeZone(TimeZone.getTimeZone("GMT")); |