Skip to content

Commit

Permalink
Serialize timestamp as JSON number.
Browse files Browse the repository at this point in the history
(cherry picked from commit 8ea6487)
  • Loading branch information
megafarad committed Oct 19, 2023
1 parent 1d360c4 commit ef00f84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public static void addEventDescriptions(
JSONObject jsonObject, TranscriptEvent e)
{
jsonObject.put(JSON_KEY_EVENT_EVENT_TYPE, e.getEvent().toString());
jsonObject.put(JSON_KEY_EVENT_TIMESTAMP, String.valueOf(e.getTimeStamp().toEpochMilli()));
jsonObject.put(JSON_KEY_EVENT_TIMESTAMP, e.getTimeStamp().toEpochMilli());

JSONObject participantJson = new JSONObject();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ else if (event.getEvent() == Transcript.TranscriptEventType.START
object.put(JSON_KEY_EVENT_EVENT_TYPE,
event.getEvent().toString());
object.put(JSON_KEY_EVENT_TIMESTAMP,
String.valueOf(event.getTimeStamp().toEpochMilli()));
event.getTimeStamp().toEpochMilli());
}

for (String url : urls)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public void notifyActionServices(
object.put(LocalJsonTranscriptHandler.JSON_KEY_EVENT_EVENT_TYPE,
event.getEvent().toString());
object.put(LocalJsonTranscriptHandler.JSON_KEY_EVENT_TIMESTAMP,
String.valueOf(event.getTimeStamp().toEpochMilli()));
event.getTimeStamp().toEpochMilli());

for (ActionHandler handler : actionSources.remove(roomName))
{
Expand Down

0 comments on commit ef00f84

Please sign in to comment.