diff options
author | acolyer <acolyer> | 2003-03-12 15:40:48 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2003-03-12 15:40:48 +0000 |
commit | 37c3bdb05f5795d8a772d12da8a0af9e8e359bc6 (patch) | |
tree | 4074aa5b523bf4508aaab50ac4cd97c1d17229c5 /bridge/testsrc | |
parent | f4a9d27439f6f8a16b1faff7ec26cf7fbac84eba (diff) | |
download | aspectj-37c3bdb05f5795d8a772d12da8a0af9e8e359bc6.tar.gz aspectj-37c3bdb05f5795d8a772d12da8a0af9e8e359bc6.zip |
Use consistent time zones in generating time strings
Diffstat (limited to 'bridge/testsrc')
-rw-r--r-- | bridge/testsrc/org/aspectj/bridge/VersionTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bridge/testsrc/org/aspectj/bridge/VersionTest.java b/bridge/testsrc/org/aspectj/bridge/VersionTest.java index 2dcc1d056..079a6db2f 100644 --- a/bridge/testsrc/org/aspectj/bridge/VersionTest.java +++ b/bridge/testsrc/org/aspectj/bridge/VersionTest.java @@ -15,6 +15,8 @@ package org.aspectj.bridge; import java.text.SimpleDateFormat; import java.util.Date; +import java.util.Locale; +import java.util.TimeZone; import junit.framework.TestCase; import junit.textui.TestRunner; @@ -45,7 +47,8 @@ public class VersionTest extends TestCase { assertEquals(Version.time, Version.NOTIME); } else { Date date = new Date(Version.time); - SimpleDateFormat format = new SimpleDateFormat(Version.SIMPLE_DATE_FORMAT); + SimpleDateFormat format = new SimpleDateFormat(Version.SIMPLE_DATE_FORMAT, Locale.US); + format.setTimeZone(TimeZone.getTimeZone("America/Los_Angeles")); String timeString = format.format(date); assertEquals(Version.time_text, timeString); } |