Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
Fix issue where occasionally an InteractiveParticipant's lastInputAt …
Browse files Browse the repository at this point in the history
…and connectedAt times were in Local time instead of UTC (as per the documentation)
  • Loading branch information
Funomena-Michael committed Aug 27, 2018
1 parent 1b6a87b commit 539573d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1941,13 +1941,13 @@ private InteractiveParticipant ReadParticipant(JsonReader jsonReader)
jsonReader.Read();
lastInputAtMillisecondsPastEpoch = Convert.ToDouble(jsonReader.Value);
DateTime lastInputAtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
lastInputAt = lastInputAtDateTime.AddMilliseconds(lastInputAtMillisecondsPastEpoch).ToLocalTime();
lastInputAt = lastInputAtDateTime.AddMilliseconds(lastInputAtMillisecondsPastEpoch).ToUniversalTime();
break;
case WS_MESSAGE_KEY_CONNECTED_AT:
jsonReader.Read();
connectedAtMillisecondsPastEpoch = Convert.ToDouble(jsonReader.Value);
DateTime connectedAtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
connectedAt = connectedAtDateTime.AddMilliseconds(connectedAtMillisecondsPastEpoch).ToLocalTime();
connectedAt = connectedAtDateTime.AddMilliseconds(connectedAtMillisecondsPastEpoch).ToUniversalTime();
break;
case WS_MESSAGE_KEY_GROUP_ID:
jsonReader.Read();
Expand Down

0 comments on commit 539573d

Please sign in to comment.