Skip to content

Apache Lucene open-source search software

SOLR-2690: more explicit checks, particularly GMT-00 which seems to have made jenkins java7 unhappy

Chris M. Hostetter955fa4ba4446
diff --git a/solr/core/src/test/org/apache/solr/util/TimeZoneUtilsTest.java b/solr/core/src/test/org/apache/solr/util/TimeZoneUtilsTest.java
index add8efa2335..f53064ce5ee 100644
--- a/solr/core/src/test/org/apache/solr/util/TimeZoneUtilsTest.java
+++ b/solr/core/src/test/org/apache/solr/util/TimeZoneUtilsTest.java
@@ -50,9 +50,12 @@ public class TimeZoneUtilsTest extends LuceneTestCase {
public void testCustom() throws Exception {
- for (String input : new String[] {"GMT+08","GMT+8",
+ for (String input : new String[] {"GMT-00", "GMT+00", "GMT-0", "GMT+0",
+ "GMT+08","GMT+8", "GMT-08","GMT-8",
+ "GMT+0800","GMT+08:00",
"GMT-0800","GMT-08:00",
- "GMT+23", "GMT+2300"}) {
+ "GMT+23", "GMT+2300",
+ "GMT-23", "GMT-2300"}) {
assertEquals(input,
TimeZone.getTimeZone(input),
TimeZoneUtils.getTimeZone(input));