Skip to content

Commit a40559f

Browse files
author
Devendra
committed
adding readable time in presence tests results
1 parent 529ed45 commit a40559f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎java/examples/src/com/pubnub/examples/PubnubPresenceTest.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ public void successCallback(String channel, Object message) {
149149
e.printStackTrace();
150150
}
151151
jso.put("channel", channel.split("-pnpres")[0]);
152+
jso.put("time", Calendar.getInstance().getTime());
152153
JSONObject step = (JSONObject)steps.get(String.valueOf(currentStep));
153154
JSONArray events = (JSONArray) step.get("events");
154155
if (events == null) {
@@ -177,6 +178,7 @@ public void successCallback(String channel, Object message) {
177178
e.printStackTrace();
178179
}
179180
jso.put("channel", channel.split("-pnpres")[0]);
181+
jso.put("time", Calendar.getInstance().getTime());
180182

181183
JSONObject step = (JSONObject)steps.get(String.valueOf(currentStep));
182184
JSONArray events = (JSONArray) step.get("events");

0 commit comments

Comments
 (0)