Modify TimeFormatterTest to work on some systems to address [ONOS-2732]

Change-Id: I42d37f3610e27e07c8f4191d2b2b7c192e75e55b
diff --git a/core/api/src/test/java/org/onosproject/ui/table/cell/TimeFormatterTest.java b/core/api/src/test/java/org/onosproject/ui/table/cell/TimeFormatterTest.java
index 4d0ca51..f41d82b 100644
--- a/core/api/src/test/java/org/onosproject/ui/table/cell/TimeFormatterTest.java
+++ b/core/api/src/test/java/org/onosproject/ui/table/cell/TimeFormatterTest.java
@@ -24,7 +24,7 @@
 
 import java.util.Locale;
 
-import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Unit tests for {@link TimeFormatter}.
@@ -35,7 +35,8 @@
     private static final DateTimeZone ZONE = DateTimeZone.UTC;
 
     private static final DateTime TIME = new DateTime(2015, 5, 4, 15, 30, ZONE);
-    private static final String EXP_OUTPUT = "3:30:00 PM UTC";
+    private static final String EXP_ZONE_NAME = "3:30:00 PM UTC";
+    private static final String EXP_ZONE_OFFSET = "3:30:00 PM +00:00";
 
     // Have to use explicit Locale and TimeZone for the unit test, so that
     //  irrespective of which locale and time zone the test is run in, it
@@ -45,6 +46,7 @@
 
     @Test
     public void basic() {
-        assertEquals("wrong format", EXP_OUTPUT, fmt.format(TIME));
+        assertTrue("wrong format", (EXP_ZONE_NAME.equals(fmt.format(TIME)) ||
+                   EXP_ZONE_OFFSET.equals(fmt.format(TIME))));
     }
 }